]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - src/js/index.js
Merge branch 'master' into eosio-support
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / src / js / index.js
index 7e654346d6c9d1608420ce556676a7994c3c24d7..f54ff71dd3c0baa9f5f0a50bed64c8656648fe8d 100644 (file)
                     address = bitcoinjs.bitcoin.networks.crown.toNewAddress(address);
                 }
 
+              if (networks[DOM.network.val()].name == "EOS - EOSIO") {
+                    address = ""
+                    pubkey = eosUtil.bufferToPublic(keyPair.getPublicKeyBuffer());
+                    privkey = eosUtil.bufferToPrivate(keyPair.d.toBuffer(32));
+                }
+                
                 addAddressToList(indexText, address, pubkey, privkey);
                 if (isLast) {
                     hidePending();
                 setHdCoin(151);
             },
         },
+        {
+            name: "EOS - EOSIO",
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.bitcoin;
+                setHdCoin(194);
+            },
+        },
         {
             name: "ESN - Ethersocial Network",
             segwitAvailable: false,