]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - src/js/index.js
Add EOSIO (EOS)
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / src / js / index.js
index 88b1e097fe5aa90c03e2ac5c3b18b93f2930bcab..3b3ebedbf22db8896f9b1a1ee942460f1d3cadfe 100644 (file)
                 if ((networks[DOM.network.val()].name == "CRW - Crown")) {
                     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) {
                 setHdCoin(151);
             },
         },
+        {
+            name: "EOS - EOSIO",
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.bitcoin;
+                setHdCoin(194);
+            },
+        },
         {
             name: "ESN - Ethersocial Network",
             segwitAvailable: false,