X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=blobdiff_plain;f=src%2Fjs%2Findex.js;h=8242da47b56d2be639f4dd391922ba31b1a9a917;hp=7e654346d6c9d1608420ce556676a7994c3c24d7;hb=82e3938afe3e76000b58e6a49e204ffff10fbd5a;hpb=b85da0745a0bcf438c2ef19b72dd44d1b09ccd94 diff --git a/src/js/index.js b/src/js/index.js index 7e65434..8242da4 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, @@ -2623,6 +2636,20 @@ setHdCoin(159); }, }, + { + name: "TWINS - TWINS", + onSelect: function() { + network = bitcoinjs.bitcoin.networks.twins; + setHdCoin(970); + }, + }, + { + name: "TWINS - TWINS Testnet", + onSelect: function() { + network = bitcoinjs.bitcoin.networks.twinstestnet; + setHdCoin(1); + }, + }, { name: "USC - Ultimatesecurecash", onSelect: function() { @@ -2773,7 +2800,7 @@ }, { name: "MONK - Monkey Project", -` onSelect: function() { + onSelect: function() { network = bitcoinjs.bitcoin.networks.monkey; setHdCoin(214); },