]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - src/js/index.js
Merge pull request #77 from krychlicki/dash_testnet
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / src / js / index.js
index 8f825f46c80c459f38e34480280fa6b7f8c3215d..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") {
+                    privkey = convertRipplePriv(privkey);
+                    address = convertRippleAdrr(address);
                 }
                 addAddressToList(indexText, address, pubkey, privkey);
             }, 50)
                 DOM.bip44coin.val(5);
             },
         },
+        {
+            name: "DASH Testnet",
+            onSelect: function() {
+                network = bitcoin.networks.dashtn;
+                DOM.bip44coin.val(1);
+            },
+        },
         {
             name: "Ethereum",
             onSelect: function() {
                 DOM.bip44coin.val(6);
             },
         },
+        {
+            name: "Ripple",
+            onSelect: function() {
+                network = bitcoin.networks.bitcoin;
+                DOM.bip44coin.val(144);
+            },
+        },
         {
             name: "ShadowCash",
             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() {