From 46054e445ed10b12f8a373bbb8f6dbcc81db3e1d Mon Sep 17 00:00:00 2001 From: Oleg Semyonov Date: Sat, 18 Apr 2020 14:52:13 +0300 Subject: Add Argoneum (v1.4.1 or above) --- changelog.md | 2 ++ src/js/bitcoinjs-extensions.js | 11 +++++++++++ src/js/index.js | 7 +++++++ tests/spec/tests.js | 10 ++++++++++ 4 files changed, 30 insertions(+) diff --git a/changelog.md b/changelog.md index dc9842d..ab03e2a 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,5 @@ +* Add Argoneum + # 0.4.2 * 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 = { scriptHash: 0xc4, wif: 0xef, }; + +libs.bitcoin.networks.argoneum = { + messagePrefix: 'unused', + bip32: { + public: 0x0488b21e, + private: 0x0488ade4 + }, + pubKeyHash: 0x32, + scriptHash: 0x61, + wif: 0xbf +}; 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 @@ -2030,6 +2030,13 @@ setHdCoin(161); }, }, + { + name: "AGM - Argoneum", + onSelect: function() { + network = libs.bitcoin.networks.argoneum; + setHdCoin(421); + }, + }, { name: "ARYA - Aryacoin", onSelect: function() { 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) { }; testNetwork(done, params); }); +it('Allows selection of Argoneum', function(done) { + var params = { + selectText: "AGM - Argoneum", + phrase: "abandon abandon ability", + firstAddress: "MWgLPvJkaJwH6hrXFs1MimAC4FwC1kYRhe", + firstPubKey: "0348e5252045fee1d3b1e5bce25dbc16284d5b6c3bfff9c305d4ffa6078c16f3f8", + firstPrivKey: "VJXpuMEFnK8USLyo5tgF7M4cBXU44U8MUor1KRTQ6t9DVno9AAgg", + }; + testNetwork(done, params); +}); // BIP39 seed is set from phrase it('Sets the bip39 seed from the prhase', function(done) { -- cgit v1.2.3