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 | 7 |
3 files changed, 25 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index 069c8d9..579c9d0 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -1375,3 +1375,14 @@ bitcoinjs.bitcoin.networks.artax = { | |||
1375 | scriptHash: 0x1CBD, | 1375 | scriptHash: 0x1CBD, |
1376 | wif: 0x97, | 1376 | wif: 0x97, |
1377 | }; | 1377 | }; |
1378 | |||
1379 | bitcoinjs.bitcoin.networks.anon = { | ||
1380 | messagePrefix: '\x18ANON Signed Message:\n', | ||
1381 | bip32: { | ||
1382 | public: 0x0488b21e, | ||
1383 | private: 0x0488ade4 | ||
1384 | }, | ||
1385 | pubKeyHash: 0x0582, | ||
1386 | scriptHash: 0x5389, | ||
1387 | wif: 0x80 | ||
1388 | }; \ No newline at end of file | ||
diff --git a/src/js/index.js b/src/js/index.js index b5d2366..1fc0586 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -1659,6 +1659,13 @@ | |||
1659 | network = bitcoinjs.bitcoin.networks.axe; | 1659 | network = bitcoinjs.bitcoin.networks.axe; |
1660 | setHdCoin(4242); | 1660 | setHdCoin(4242); |
1661 | }, | 1661 | }, |
1662 | }, | ||
1663 | { | ||
1664 | name: "ANON - ANON", | ||
1665 | onSelect: function() { | ||
1666 | network = bitcoinjs.bitcoin.networks.anon; | ||
1667 | setHdCoin(220); | ||
1668 | }, | ||
1662 | }, | 1669 | }, |
1663 | { | 1670 | { |
1664 | name: "BCA - Bitcoin Atom", | 1671 | name: "BCA - Bitcoin Atom", |
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index acd8815..892774b 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js | |||
@@ -1319,6 +1319,13 @@ it('Allows selection of Artax', function(done) { | |||
1319 | }; | 1319 | }; |
1320 | testNetwork(done, params); | 1320 | testNetwork(done, params); |
1321 | }); | 1321 | }); |
1322 | it('Allows selection of ANON', function(done) { | ||
1323 | var params = { | ||
1324 | selectText: "ANON - ANON", | ||
1325 | firstAddress: "AnU6pijpEeUZFWSTyM2qTqZQn996Zq1Xard", | ||
1326 | }; | ||
1327 | testNetwork(done, params); | ||
1328 | }); | ||
1322 | 1329 | ||
1323 | 1330 | ||
1324 | // BIP39 seed is set from phrase | 1331 | // BIP39 seed is set from phrase |