diff options
author | iancoleman <1281387+iancoleman@users.noreply.github.com> | 2020-04-28 09:25:55 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-28 09:25:55 +1000 |
commit | d359fe64b2f43f59714815d7ec5e1c82de50afd0 (patch) | |
tree | f3b9d09e8703940290f715a65f6d2d48e7c1c8fb | |
parent | 1bf76fe32df9c374c6262e47dacb1ff331438198 (diff) | |
parent | 46054e445ed10b12f8a373bbb8f6dbcc81db3e1d (diff) | |
download | BIP39-d359fe64b2f43f59714815d7ec5e1c82de50afd0.tar.gz BIP39-d359fe64b2f43f59714815d7ec5e1c82de50afd0.tar.zst BIP39-d359fe64b2f43f59714815d7ec5e1c82de50afd0.zip |
Merge pull request #416 from Argoneum/argoneum
Add Argoneum (v1.4.1 or above)
-rw-r--r-- | changelog.md | 2 | ||||
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 11 | ||||
-rw-r--r-- | src/js/index.js | 7 | ||||
-rw-r--r-- | tests/spec/tests.js | 10 |
4 files changed, 30 insertions, 0 deletions
diff --git a/changelog.md b/changelog.md index dc9842d..ab03e2a 100644 --- a/changelog.md +++ b/changelog.md | |||
@@ -1,3 +1,5 @@ | |||
1 | * Add Argoneum | ||
2 | |||
1 | # 0.4.2 | 3 | # 0.4.2 |
2 | 4 | ||
3 | * Fix ethereum private key format | 5 | * Fix ethereum private key format |
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index 7446bd7..e331c24 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -1762,3 +1762,14 @@ libs.bitcoin.networks.regtest = { | |||
1762 | scriptHash: 0xc4, | 1762 | scriptHash: 0xc4, |
1763 | wif: 0xef, | 1763 | wif: 0xef, |
1764 | }; | 1764 | }; |
1765 | |||
1766 | libs.bitcoin.networks.argoneum = { | ||
1767 | messagePrefix: 'unused', | ||
1768 | bip32: { | ||
1769 | public: 0x0488b21e, | ||
1770 | private: 0x0488ade4 | ||
1771 | }, | ||
1772 | pubKeyHash: 0x32, | ||
1773 | scriptHash: 0x61, | ||
1774 | wif: 0xbf | ||
1775 | }; | ||
diff --git a/src/js/index.js b/src/js/index.js index 841a27f..0471e86 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -2031,6 +2031,13 @@ | |||
2031 | }, | 2031 | }, |
2032 | }, | 2032 | }, |
2033 | { | 2033 | { |
2034 | name: "AGM - Argoneum", | ||
2035 | onSelect: function() { | ||
2036 | network = libs.bitcoin.networks.argoneum; | ||
2037 | setHdCoin(421); | ||
2038 | }, | ||
2039 | }, | ||
2040 | { | ||
2034 | name: "ARYA - Aryacoin", | 2041 | name: "ARYA - Aryacoin", |
2035 | onSelect: function() { | 2042 | onSelect: function() { |
2036 | network = libs.bitcoin.networks.aryacoin; | 2043 | network = libs.bitcoin.networks.aryacoin; |
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index d9a1843..e7c81bc 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js | |||
@@ -2226,6 +2226,16 @@ it('Allows selection of tRBTC - RSK Testnet', function(done) { | |||
2226 | }; | 2226 | }; |
2227 | testNetwork(done, params); | 2227 | testNetwork(done, params); |
2228 | }); | 2228 | }); |
2229 | it('Allows selection of Argoneum', function(done) { | ||
2230 | var params = { | ||
2231 | selectText: "AGM - Argoneum", | ||
2232 | phrase: "abandon abandon ability", | ||
2233 | firstAddress: "MWgLPvJkaJwH6hrXFs1MimAC4FwC1kYRhe", | ||
2234 | firstPubKey: "0348e5252045fee1d3b1e5bce25dbc16284d5b6c3bfff9c305d4ffa6078c16f3f8", | ||
2235 | firstPrivKey: "VJXpuMEFnK8USLyo5tgF7M4cBXU44U8MUor1KRTQ6t9DVno9AAgg", | ||
2236 | }; | ||
2237 | testNetwork(done, params); | ||
2238 | }); | ||
2229 | 2239 | ||
2230 | // BIP39 seed is set from phrase | 2240 | // BIP39 seed is set from phrase |
2231 | it('Sets the bip39 seed from the prhase', function(done) { | 2241 | it('Sets the bip39 seed from the prhase', function(done) { |