aboutsummaryrefslogtreecommitdiff
path: root/src/js/index.js
diff options
context:
space:
mode:
authorJeeyong Um <conr2d@gmail.com>2019-06-01 20:23:28 +0900
committerJeeyong Um <conr2d@gmail.com>2019-06-01 20:23:28 +0900
commit3451d1a81bf3a25d85e4919916772c5bd4b6cd05 (patch)
treed8ae425e5712f7d7a7c55dab51efaf03e64144e9 /src/js/index.js
parent22bb112ead9e32d1761cd80aba65ade61864cd6c (diff)
downloadBIP39-3451d1a81bf3a25d85e4919916772c5bd4b6cd05.tar.gz
BIP39-3451d1a81bf3a25d85e4919916772c5bd4b6cd05.tar.zst
BIP39-3451d1a81bf3a25d85e4919916772c5bd4b6cd05.zip
Add EOSIO (EOS)
Diffstat (limited to 'src/js/index.js')
-rw-r--r--src/js/index.js12
1 files changed, 12 insertions, 0 deletions
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 @@
984 if ((networks[DOM.network.val()].name == "CRW - Crown")) { 984 if ((networks[DOM.network.val()].name == "CRW - Crown")) {
985 address = bitcoinjs.bitcoin.networks.crown.toNewAddress(address); 985 address = bitcoinjs.bitcoin.networks.crown.toNewAddress(address);
986 } 986 }
987 if (networks[DOM.network.val()].name == "EOS - EOSIO") {
988 address = ""
989 pubkey = eosUtil.bufferToPublic(keyPair.getPublicKeyBuffer());
990 privkey = eosUtil.bufferToPrivate(keyPair.d.toBuffer(32));
991 }
987 992
988 addAddressToList(indexText, address, pubkey, privkey); 993 addAddressToList(indexText, address, pubkey, privkey);
989 if (isLast) { 994 if (isLast) {
@@ -2010,6 +2015,13 @@
2010 }, 2015 },
2011 }, 2016 },
2012 { 2017 {
2018 name: "EOS - EOSIO",
2019 onSelect: function() {
2020 network = bitcoinjs.bitcoin.networks.bitcoin;
2021 setHdCoin(194);
2022 },
2023 },
2024 {
2013 name: "ESN - Ethersocial Network", 2025 name: "ESN - Ethersocial Network",
2014 segwitAvailable: false, 2026 segwitAvailable: false,
2015 onSelect: function() { 2027 onSelect: function() {