diff options
author | Matt Robertson <sile16@gmail.com> | 2019-07-04 13:20:14 -0500 |
---|---|---|
committer | Matt Robertson <sile16@gmail.com> | 2019-07-04 13:20:14 -0500 |
commit | c7a1a000401bc619c4b128d6d134d185fbb0b6d3 (patch) | |
tree | 4e5ae49737d863b1bd85100de5779358077e37a5 | |
parent | 6aa2c1d26d5d6b9e7156ff2be029efb26c861251 (diff) | |
download | BIP39-c7a1a000401bc619c4b128d6d134d185fbb0b6d3.tar.gz BIP39-c7a1a000401bc619c4b128d6d134d185fbb0b6d3.tar.zst BIP39-c7a1a000401bc619c4b128d6d134d185fbb0b6d3.zip |
Added support for VeChain, hdcoin 818, same address formats as ETH
-rw-r--r-- | src/js/index.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/js/index.js b/src/js/index.js index 9578146..52b0db5 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -921,6 +921,7 @@ | |||
921 | || (networks[DOM.network.val()].name == "DXN - DEXON") | 921 | || (networks[DOM.network.val()].name == "DXN - DEXON") |
922 | || (networks[DOM.network.val()].name == "ELLA - Ellaism") | 922 | || (networks[DOM.network.val()].name == "ELLA - Ellaism") |
923 | || (networks[DOM.network.val()].name == "ESN - Ethersocial Network") | 923 | || (networks[DOM.network.val()].name == "ESN - Ethersocial Network") |
924 | || (networks[DOM.network.val()].name == "VET - VeChain") | ||
924 | ) { | 925 | ) { |
925 | var privKeyBuffer = keyPair.d.toBuffer(32); | 926 | var privKeyBuffer = keyPair.d.toBuffer(32); |
926 | privkey = privKeyBuffer.toString('hex'); | 927 | privkey = privKeyBuffer.toString('hex'); |
@@ -2706,6 +2707,13 @@ | |||
2706 | }, | 2707 | }, |
2707 | }, | 2708 | }, |
2708 | { | 2709 | { |
2710 | name: "VET - VeChain", | ||
2711 | onSelect: function() { | ||
2712 | network = bitcoinjs.bitcoin.networks.bitcoin; | ||
2713 | setHdCoin(818); | ||
2714 | }, | ||
2715 | }, | ||
2716 | { | ||
2709 | name: "VIA - Viacoin", | 2717 | name: "VIA - Viacoin", |
2710 | onSelect: function() { | 2718 | onSelect: function() { |
2711 | network = bitcoinjs.bitcoin.networks.viacoin; | 2719 | network = bitcoinjs.bitcoin.networks.viacoin; |