]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
fix to switch bip44 coin type path for mycelium when switching between bitcoin and...
authorRobert Johnson <sk8boy189@gmail.com>
Tue, 14 Oct 2014 22:40:19 +0000 (17:40 -0500)
committerRobert Johnson <sk8boy189@gmail.com>
Tue, 14 Oct 2014 22:40:19 +0000 (17:40 -0500)
bip39-standalone.html
src/js/index.js

index 87338644b28e4b7593936e836098e08f0c54fab2..c015856d4477d6b6b0ebc5b6fe3c8bd7ef4996dd 100644 (file)
@@ -33893,6 +33893,7 @@ var Mnemonic = function(language) {
     DOM.indexToggle = $(".index-toggle");
     DOM.addressToggle = $(".address-toggle");
     DOM.privateKeyToggle = $(".private-key-toggle");
+    DOM.myceliumPath = $("#mycelium-path");
 
     var derivationPath = $(".tab-pane.active .path").val();
 
@@ -33924,10 +33925,12 @@ var Mnemonic = function(language) {
         if (n == "bitcoin") {
             network = Bitcoin.networks.bitcoin;
             DOM.bip44coin.val(0);
+            DOM.myceliumPath.val("m/44'/0'/0'/0");
         }
         else if (n == "bitcoin-testnet") {
             network = Bitcoin.networks.testnet;
             DOM.bip44coin.val(1);
+            DOM.myceliumPath.val("m/44'/1'/0'/0");
         }
         else if (n == "litecoin") {
             network = Bitcoin.networks.litecoin;
index bc1682e99c38ac7dd5e909e3a5f32889fcdc9148..bbef50d03c4dcdab2aeb45e7705c5626351b64f7 100644 (file)
@@ -40,6 +40,7 @@
     DOM.indexToggle = $(".index-toggle");
     DOM.addressToggle = $(".address-toggle");
     DOM.privateKeyToggle = $(".private-key-toggle");
+    DOM.myceliumPath = $("#mycelium-path");
 
     var derivationPath = $(".tab-pane.active .path").val();
 
         if (n == "bitcoin") {
             network = Bitcoin.networks.bitcoin;
             DOM.bip44coin.val(0);
+            DOM.myceliumPath.val("m/44'/0'/0'/0");
         }
         else if (n == "bitcoin-testnet") {
             network = Bitcoin.networks.testnet;
             DOM.bip44coin.val(1);
+            DOM.myceliumPath.val("m/44'/1'/0'/0");
         }
         else if (n == "litecoin") {
             network = Bitcoin.networks.litecoin;