]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Merge pull request #55 from galeksandrp/patch-1
authoriancoleman <coleman.ian@gmail.com>
Sun, 19 Feb 2017 00:23:41 +0000 (11:23 +1100)
committerGitHub <noreply@github.com>
Sun, 19 Feb 2017 00:23:41 +0000 (11:23 +1100)
Add client select

1  2 
src/index.html
src/js/index.js

diff --cc src/index.html
Simple merge
diff --cc src/js/index.js
index 4c947a4e215703704d7830956be7d6ad075b8ebd,f593b3a937a427e46511a036b1c3a311d35bd530..8c54cab6c13ac41b5a7051e8e9529f512c4f8198
                  DOM.bip44coin.val(6);
              },
          },
 +        {
 +            name: "Ethereum",
 +            onSelect: function() {
 +                network = bitcoin.networks.bitcoin;
 +                DOM.bip44coin.val(60);
 +            },
 +        },
      ]
+     
+     var clients = [
+         {
+             name: "Bitcoin Core",
+             onSelect: function() {
+                 DOM.bip32path.val("m/0'/0'");
+                 DOM.hardenedAddresses.prop('checked', true);
+             },
+         },
+         {
+             name: "blockchain.info",
+             onSelect: function() {
+                 DOM.bip32path.val("m/44'/0'/0'");
+                 DOM.hardenedAddresses.prop('checked', false);
+             },
+         },
+         {
+             name: "MultiBit HD",
+             onSelect: function() {
+                 DOM.bip32path.val("m/0'/0");
+                 DOM.hardenedAddresses.prop('checked', false);
+             },
+         }
+     ]
  
      init();