aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog.md2
-rw-r--r--src/js/bitcoinjs-extensions.js11
-rw-r--r--src/js/index.js7
-rw-r--r--tests/spec/tests.js10
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
1766libs.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});
2229it('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
2231it('Sets the bip39 seed from the prhase', function(done) { 2241it('Sets the bip39 seed from the prhase', function(done) {