From 3451d1a81bf3a25d85e4919916772c5bd4b6cd05 Mon Sep 17 00:00:00 2001 From: Jeeyong Um Date: Sat, 1 Jun 2019 20:23:28 +0900 Subject: Add EOSIO (EOS) --- src/js/index.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/js/index.js') diff --git a/src/js/index.js b/src/js/index.js index 88b1e09..3b3ebed 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -984,6 +984,11 @@ 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) { @@ -2009,6 +2014,13 @@ setHdCoin(151); }, }, + { + name: "EOS - EOSIO", + onSelect: function() { + network = bitcoinjs.bitcoin.networks.bitcoin; + setHdCoin(194); + }, + }, { name: "ESN - Ethersocial Network", segwitAvailable: false, -- cgit v1.2.3