Merge pull request #272 from skironDotNet/phore-coin

Added Phore (PHR) coin
This commit is contained in:
iancoleman
2018-11-01 15:56:25 +11:00
committed by GitHub
3 changed files with 25 additions and 0 deletions
+11
View File
@@ -1407,4 +1407,15 @@ bitcoinjs.bitcoin.networks.projectcoin = {
pubKeyHash: 0x37, pubKeyHash: 0x37,
scriptHash: 0x08, scriptHash: 0x08,
wif: 0x75, wif: 0x75,
};
bitcoinjs.bitcoin.networks.phore = {
messagePrefix: '\x18Phore Signed Message:\n',
bip32: {
public: 0x022D2533,
private: 0x0221312B,
},
pubKeyHash: 0x37,
scriptHash: 0x0D,
wif: 0xD4,
}; };
+7
View File
@@ -2262,6 +2262,13 @@
network = bitcoinjs.bitcoin.networks.onixcoin; network = bitcoinjs.bitcoin.networks.onixcoin;
setHdCoin(174); setHdCoin(174);
}, },
},
{
name: "PHR - Phore",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.phore;
setHdCoin(444);
},
}, },
{ {
name: "PINK - Pinkcoin", name: "PINK - Pinkcoin",
+7
View File
@@ -1341,6 +1341,13 @@ it('Allows selection of ProjectCoin', function(done) {
}; };
testNetwork(done, params); 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 // BIP39 seed is set from phrase
it('Sets the bip39 seed from the prhase', function(done) { it('Sets the bip39 seed from the prhase', function(done) {