aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2018-10-15 11:27:17 +1100
committerGitHub <noreply@github.com>2018-10-15 11:27:17 +1100
commit8a516f55299a5a89dbd4e74b9927737feca460aa (patch)
treef16f6acb46e0bc9f37cff5e0085ca9a3a780b980
parent37f237239a0657e04dbfa5ad43587892d1402b24 (diff)
parent455886617dc867edfcc1733d38271f45f9589df4 (diff)
downloadBIP39-8a516f55299a5a89dbd4e74b9927737feca460aa.tar.gz
BIP39-8a516f55299a5a89dbd4e74b9927737feca460aa.tar.zst
BIP39-8a516f55299a5a89dbd4e74b9927737feca460aa.zip
Merge pull request #267 from anonymousbitcoin/master
Add ANON
-rw-r--r--src/js/bitcoinjs-extensions.js11
-rw-r--r--src/js/index.js7
-rw-r--r--tests/spec/tests.js7
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
1379bitcoinjs.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});
1322it('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