diff options
-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 17475b1..1ef2aa4 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -1751,3 +1751,14 @@ libs.bitcoin.networks.regtest = { | |||
1751 | scriptHash: 0xc4, | 1751 | scriptHash: 0xc4, |
1752 | wif: 0xef, | 1752 | wif: 0xef, |
1753 | }; | 1753 | }; |
1754 | |||
1755 | libs.bitcoin.networks.argoneum = { | ||
1756 | messagePrefix: 'unused', | ||
1757 | bip32: { | ||
1758 | public: 0x0488b21e, | ||
1759 | private: 0x0488ade4 | ||
1760 | }, | ||
1761 | pubKeyHash: 0x32, | ||
1762 | scriptHash: 0x61, | ||
1763 | wif: 0xbf | ||
1764 | }; | ||
diff --git a/src/js/index.js b/src/js/index.js index c2d34a7..f711818 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 31fa043..1b92915 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js | |||
@@ -2216,6 +2216,16 @@ it('Allows selection of tRBTC - RSK Testnet', function(done) { | |||
2216 | }; | 2216 | }; |
2217 | testNetwork(done, params); | 2217 | testNetwork(done, params); |
2218 | }); | 2218 | }); |
2219 | it('Allows selection of Argoneum', function(done) { | ||
2220 | var params = { | ||
2221 | selectText: "AGM - Argoneum", | ||
2222 | phrase: "abandon abandon ability", | ||
2223 | firstAddress: "MWgLPvJkaJwH6hrXFs1MimAC4FwC1kYRhe", | ||
2224 | firstPubKey: "0348e5252045fee1d3b1e5bce25dbc16284d5b6c3bfff9c305d4ffa6078c16f3f8", | ||
2225 | firstPrivKey: "VJXpuMEFnK8USLyo5tgF7M4cBXU44U8MUor1KRTQ6t9DVno9AAgg", | ||
2226 | }; | ||
2227 | testNetwork(done, params); | ||
2228 | }); | ||
2219 | 2229 | ||
2220 | // BIP39 seed is set from phrase | 2230 | // BIP39 seed is set from phrase |
2221 | it('Sets the bip39 seed from the prhase', function(done) { | 2231 | it('Sets the bip39 seed from the prhase', function(done) { |