Added Phore (PHR) coin

This commit is contained in:
Pawel Cioch
2018-10-31 10:50:42 -05:00
parent a51ef005ac
commit 38d1b296df
3 changed files with 25 additions and 0 deletions

View File

@@ -1407,4 +1407,15 @@ bitcoinjs.bitcoin.networks.projectcoin = {
pubKeyHash: 0x37,
scriptHash: 0x08,
wif: 0x75,
};
bitcoinjs.bitcoin.networks.phore = {
messagePrefix: '\x18Phore Signed Message:\n',
bip32: {
public: 0x022D2533,
private: 0x0221312B,
},
pubKeyHash: 0x37,
scriptHash: 0x0D,
wif: 0xD4,
};

View File

@@ -2262,6 +2262,13 @@
network = bitcoinjs.bitcoin.networks.onixcoin;
setHdCoin(174);
},
},
{
name: "PHR - Phore",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.phore;
setHdCoin(444);
},
},
{
name: "PINK - Pinkcoin",

View File

@@ -1341,6 +1341,13 @@ it('Allows selection of ProjectCoin', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of Phore', function(done) {
var params = {
selectText: "PHR - Phore",
firstAddress: "PJThxpoXAG6hqrmdeQQbVDX4TJtFTMMymC",
};
testNetwork(done, params);
});
// BIP39 seed is set from phrase
it('Sets the bip39 seed from the prhase', function(done) {