Added PRJ - ProjectCoin

This commit is contained in:
Pawel Cioch
2018-10-21 14:57:38 -05:00
parent 64425922ae
commit d2ba387163
3 changed files with 25 additions and 1 deletions

View File

@@ -1396,4 +1396,15 @@ bitcoinjs.bitcoin.networks.anon = {
pubKeyHash: 0x0582,
scriptHash: 0x5389,
wif: 0x80
};
bitcoinjs.bitcoin.networks.projectcoin = {
messagePrefix: '\x18ProjectCoin Signed Message:\n',
bip32: {
public: 0x022D2533,
private: 0x0221312B,
},
pubKeyHash: 0x37,
scriptHash: 0x08,
wif: 0x75,
};

View File

@@ -2320,6 +2320,13 @@
network = bitcoinjs.bitcoin.networks.peercoin;
setHdCoin(6);
},
},
{
name: "PRJ - ProjectCoin",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.projectcoin;
setHdCoin(533);
},
},
{
name: "PSB - Pesobit",

View File

@@ -1333,7 +1333,13 @@ it('Allows selection of ANON', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of ProjectCoin', function(done) {
var params = {
selectText: "PRJ - ProjectCoin",
firstAddress: "PXZG97saRseSCftfe1mcFmfAA7pf6qBbaz",
};
testNetwork(done, params);
});
// BIP39 seed is set from phrase
it('Sets the bip39 seed from the prhase', function(done) {