mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-05-13 20:25:03 +00:00
Add Particl support
This commit is contained in:
@@ -1876,3 +1876,15 @@ libs.bitcoin.networks.argoneum = {
|
||||
scriptHash: 0x61,
|
||||
wif: 0xbf
|
||||
};
|
||||
|
||||
libs.bitcoin.networks.particl = {
|
||||
messagePrefix: '\x18Bitcoin Signed Message:\n',
|
||||
bech32: 'pw',
|
||||
bip32: {
|
||||
public: 0x696e82d1,
|
||||
private: 0x8f1daeb8,
|
||||
},
|
||||
pubKeyHash: 0x38,
|
||||
scriptHash: 0x3c,
|
||||
wif: 0x6c,
|
||||
};
|
||||
|
||||
+9
-2
@@ -1434,14 +1434,14 @@
|
||||
pubkey = CosmosBufferToPublic(keyPair.getPublicKeyBuffer(), hrp);
|
||||
privkey = keyPair.d.toBuffer().toString("base64");
|
||||
}
|
||||
|
||||
|
||||
if (networks[DOM.network.val()].name == "RUNE - THORChain") {
|
||||
const hrp = "thor";
|
||||
address = CosmosBufferToAddress(keyPair.getPublicKeyBuffer(), hrp);
|
||||
pubkey = keyPair.getPublicKeyBuffer().toString("hex");
|
||||
privkey = keyPair.d.toBuffer().toString("hex");
|
||||
}
|
||||
|
||||
|
||||
if (networks[DOM.network.val()].name == "XWC - Whitecoin"){
|
||||
address = XWCbufferToAddress(keyPair.getPublicKeyBuffer());
|
||||
pubkey = XWCbufferToPublic(keyPair.getPublicKeyBuffer());
|
||||
@@ -3182,6 +3182,13 @@
|
||||
setHdCoin(174);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "PART - Particl",
|
||||
onSelect: function() {
|
||||
network = libs.bitcoin.networks.particl;
|
||||
setHdCoin(44);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "PHR - Phore",
|
||||
onSelect: function() {
|
||||
|
||||
Reference in New Issue
Block a user