]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Merge pull request #416 from Argoneum/argoneum
authoriancoleman <1281387+iancoleman@users.noreply.github.com>
Mon, 27 Apr 2020 23:25:55 +0000 (09:25 +1000)
committerGitHub <noreply@github.com>
Mon, 27 Apr 2020 23:25:55 +0000 (09:25 +1000)
Add Argoneum (v1.4.1 or above)

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 7446bd7ecc5af5d12cb0da5e82d0e494ae06fa3e..e331c241c986c480eba052be6255c31f101d171b 100644 (file)
@@ -1762,3 +1762,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 841a27f0cde32563266efd1c4718acea4cc23230..0471e8619d2e3d0f749f0414ceb09f524616c051 100644 (file)
                 setHdCoin(161);
             },
         },
+        {
+            name: "AGM - Argoneum",
+            onSelect: function() {
+                network = libs.bitcoin.networks.argoneum;
+                setHdCoin(421);
+            },
+        },
         {
             name: "ARYA - Aryacoin",
             onSelect: function() {
index d9a1843cd6f380d6c4055143a7f6db12188216d2..e7c81bcad598129c3fefbe158676eb5e106fad30 100644 (file)
@@ -2226,6 +2226,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) {