]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Add ExchangeCoin
authorharzo <harzojunior@gmail.com>
Wed, 5 Sep 2018 13:03:40 +0000 (15:03 +0200)
committerharzo <harzojunior@gmail.com>
Wed, 5 Sep 2018 13:04:13 +0000 (15:04 +0200)
src/js/bitcoinjs-extensions.js
src/js/index.js
tests/spec/tests.js

index d3f9847a2d8d98d31677d3745a02aef8db7e7deb..9b0366abdff6c5d48b43eeb754f86f898147e696 100644 (file)
@@ -1331,3 +1331,14 @@ bitcoinjs.bitcoin.networks.energi = {
   scriptHash: 0x35,
   wif: 0x6a,
 };
+
+bitcoinjs.bitcoin.networks.exchangecoin = {
+  messagePrefix: 'ExchangeCoin Signed Message:\n',
+  bip32: {
+    public: 0x0488B21E,
+    private: 0x0488ADE4,
+  },
+  pubKeyHash: 0x21B9,
+  scriptHash: 0x34AF,
+  wif: 0x80,
+};
index 2a3e86c60bda717204aed453baa5b4a7df5caf5a..e3d0b4b4f8cfa06c418d8c3ea5604daeed14b111 100644 (file)
                 setHdCoin(190);
             },
         },
+        {
+            name: "EXCC - ExchangeCoin",
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.exchangecoin;
+                setHdCoin(0);
+            },
+        },
         {
             name: "EXP - Expanse",
             segwitAvailable: false,
index 4d924717bd084c769a81b031a2b5a02205b9ab5f..b5fb4a4ea89a12ea66665bc1cad5092576232327 100644 (file)
@@ -1290,6 +1290,13 @@ it('Allows selection of HUSH', function(done) {
     };
     testNetwork(done, params);
 });
+it('Allows selection of ExchangeCoin', function(done) {
+    var params = {
+        selectText: "EXCC - ExchangeCoin",
+        firstAddress: "22txYKpFN5fwGwdSs2UBf7ywewbLM92YqK7E",
+    };
+    testNetwork(done, params);
+});
 
 
 // BIP39 seed is set from phrase