]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Add Argoneum (v1.4.1 or above)
authorOleg Semyonov <osnwt@github.com>
Sat, 18 Apr 2020 11:52:13 +0000 (14:52 +0300)
committerOleg Semyonov <osnwt@github.com>
Sat, 25 Apr 2020 11:26:06 +0000 (14:26 +0300)
changelog.md
src/js/bitcoinjs-extensions.js
src/js/index.js
tests/spec/tests.js

index dc9842dec632e800e0155ca34e367145553de98c..ab03e2ac5ed662b9fbc19ebbf2c38d1c852ff45c 100644 (file)
@@ -1,3 +1,5 @@
+* Add Argoneum
+
 # 0.4.2
 
 * Fix ethereum private key format
index 17475b137c9b6ed891b5c884b44627d6fcd0fabd..1ef2aa4cb65b4d8828a4ef636e7d4b3485fc84cb 100644 (file)
@@ -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
+};
index c2d34a711ac3c2be0ca06cb79984f35419b6fc23..f7118185ce93169300e72a55af8b6222b1e39378 100644 (file)
                 setHdCoin(161);
             },
         },
+        {
+            name: "AGM - Argoneum",
+            onSelect: function() {
+                network = libs.bitcoin.networks.argoneum;
+                setHdCoin(421);
+            },
+        },
         {
             name: "ARYA - Aryacoin",
             onSelect: function() {
index 31fa043a0f3133b1414c73594a747a2dd5c93e21..1b929158e4a4a39eb66a7eeb5718d9f7e8b50527 100644 (file)
@@ -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) {