diff options
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 11 | ||||
-rw-r--r-- | src/js/index.js | 7 | ||||
-rw-r--r-- | tests/spec/tests.js | 8 |
3 files changed, 25 insertions, 1 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index fef567a..0de9fa8 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -1396,4 +1396,15 @@ bitcoinjs.bitcoin.networks.anon = { | |||
1396 | pubKeyHash: 0x0582, | 1396 | pubKeyHash: 0x0582, |
1397 | scriptHash: 0x5389, | 1397 | scriptHash: 0x5389, |
1398 | wif: 0x80 | 1398 | wif: 0x80 |
1399 | }; | ||
1400 | |||
1401 | bitcoinjs.bitcoin.networks.projectcoin = { | ||
1402 | messagePrefix: '\x18ProjectCoin Signed Message:\n', | ||
1403 | bip32: { | ||
1404 | public: 0x022D2533, | ||
1405 | private: 0x0221312B, | ||
1406 | }, | ||
1407 | pubKeyHash: 0x37, | ||
1408 | scriptHash: 0x08, | ||
1409 | wif: 0x75, | ||
1399 | }; \ No newline at end of file | 1410 | }; \ No newline at end of file |
diff --git a/src/js/index.js b/src/js/index.js index 85639a0..5d031b2 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -2321,6 +2321,13 @@ | |||
2321 | setHdCoin(6); | 2321 | setHdCoin(6); |
2322 | }, | 2322 | }, |
2323 | }, | 2323 | }, |
2324 | { | ||
2325 | name: "PRJ - ProjectCoin", | ||
2326 | onSelect: function() { | ||
2327 | network = bitcoinjs.bitcoin.networks.projectcoin; | ||
2328 | setHdCoin(533); | ||
2329 | }, | ||
2330 | }, | ||
2324 | { | 2331 | { |
2325 | name: "PSB - Pesobit", | 2332 | name: "PSB - Pesobit", |
2326 | onSelect: function() { | 2333 | onSelect: function() { |
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 4a4146c..590f4e3 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js | |||
@@ -1333,7 +1333,13 @@ it('Allows selection of ANON', function(done) { | |||
1333 | }; | 1333 | }; |
1334 | testNetwork(done, params); | 1334 | testNetwork(done, params); |
1335 | }); | 1335 | }); |
1336 | 1336 | it('Allows selection of ProjectCoin', function(done) { | |
1337 | var params = { | ||
1338 | selectText: "PRJ - ProjectCoin", | ||
1339 | firstAddress: "PXZG97saRseSCftfe1mcFmfAA7pf6qBbaz", | ||
1340 | }; | ||
1341 | testNetwork(done, params); | ||
1342 | }); | ||
1337 | 1343 | ||
1338 | // BIP39 seed is set from phrase | 1344 | // BIP39 seed is set from phrase |
1339 | it('Sets the bip39 seed from the prhase', function(done) { | 1345 | it('Sets the bip39 seed from the prhase', function(done) { |