mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-21 09:52:16 +00:00
Added Phore (PHR) coin
This commit is contained in:
@@ -1408,3 +1408,14 @@ bitcoinjs.bitcoin.networks.projectcoin = {
|
|||||||
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,
|
||||||
|
};
|
||||||
@@ -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",
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user