X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2Fjs%2Findex.js;h=56f42d4d2e3766b131c709e3d8b39be04394391a;hb=06cd4e7608f88a5b43d5e783fd1dc51650e190a1;hp=7e654346d6c9d1608420ce556676a7994c3c24d7;hpb=b85da0745a0bcf438c2ef19b72dd44d1b09ccd94;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git diff --git a/src/js/index.js b/src/js/index.js index 7e65434..56f42d4 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -985,6 +985,12 @@ 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(); @@ -2016,6 +2022,13 @@ setHdCoin(151); }, }, + { + name: "EOS - EOSIO", + onSelect: function() { + network = bitcoinjs.bitcoin.networks.bitcoin; + setHdCoin(194); + }, + }, { name: "ESN - Ethersocial Network", segwitAvailable: false, @@ -2773,7 +2786,7 @@ }, { name: "MONK - Monkey Project", -` onSelect: function() { + onSelect: function() { network = bitcoinjs.bitcoin.networks.monkey; setHdCoin(214); },