Add Particl support

This commit is contained in:
tecnovert
2021-06-24 23:16:11 +02:00
parent c4f0c2908f
commit c7e1af7300
3 changed files with 32 additions and 2 deletions
+12
View File
@@ -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
View File
@@ -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() {