]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - src/js/index.js
add dash testnet
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / src / js / index.js
index c4d99afea4576ead9613bc8f66b5f16b80b36abd..3b86e42fb3e8c2c11a8f3bee5fe8d32efb10ab79 100644 (file)
                     var hexAddress = addressBuffer.toString('hex');
                     var checksumAddress = ethUtil.toChecksumAddress(hexAddress);
                     address = ethUtil.addHexPrefix(checksumAddress);
+                    privkey = ethUtil.addHexPrefix(privkey);
+                    pubkey = ethUtil.addHexPrefix(pubkey);
                 }
                 // Ripple values are different
                 if (networks[DOM.network.val()].name == "Ripple") {
                 DOM.bip44coin.val(5);
             },
         },
+        {
+            name: "DASH Testnet",
+            onSelect: function() {
+                network = bitcoin.networks.dashtn;
+                DOM.bip44coin.val(1);
+            },
+        },
         {
             name: "Ethereum",
             onSelect: function() {
                 DOM.bip44coin.val(1);
             },
         },
+        {
+            name: "Slimcoin",
+            onSelect: function() {
+                network = bitcoin.networks.slimcoin;
+                DOM.bip44coin.val(63);
+            },
+        },
+        {
+            name: "Slimcoin Testnet",
+            onSelect: function() {
+                network = bitcoin.networks.slimcointn;
+                DOM.bip44coin.val(111);
+            },
+        },
         {
             name: "Viacoin",
             onSelect: function() {