aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorHsuan Lee <boczeratul@gmail.com>2019-03-14 11:13:41 +0800
committerHsuan Lee <boczeratul@gmail.com>2019-03-14 11:13:41 +0800
commit6cbd3bc8c22256bf35df5d69d8ef6685590b66e4 (patch)
tree23e67e2939acde581c8c09d1fffc0365a7b3a3cd /src/js
parent74762b369e1446cede3db718d0f7348d0f57ab75 (diff)
downloadBIP39-6cbd3bc8c22256bf35df5d69d8ef6685590b66e4.tar.gz
BIP39-6cbd3bc8c22256bf35df5d69d8ef6685590b66e4.tar.zst
BIP39-6cbd3bc8c22256bf35df5d69d8ef6685590b66e4.zip
Add definitions for DEXON (DXN)
Diffstat (limited to 'src/js')
-rw-r--r--src/js/index.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/js/index.js b/src/js/index.js
index 9e955ae..bc15559 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -917,7 +917,8 @@
917 || (networks[DOM.network.val()].name == "MUSIC - Musicoin") 917 || (networks[DOM.network.val()].name == "MUSIC - Musicoin")
918 || (networks[DOM.network.val()].name == "POA - Poa") 918 || (networks[DOM.network.val()].name == "POA - Poa")
919 || (networks[DOM.network.val()].name == "EXP - Expanse") 919 || (networks[DOM.network.val()].name == "EXP - Expanse")
920 || (networks[DOM.network.val()].name == "CLO - Callisto")) { 920 || (networks[DOM.network.val()].name == "CLO - Callisto")
921 || (networks[DOM.network.val()].name == "DXN - DEXON")) {
921 var privKeyBuffer = keyPair.d.toBuffer(32); 922 var privKeyBuffer = keyPair.d.toBuffer(32);
922 privkey = privKeyBuffer.toString('hex'); 923 privkey = privKeyBuffer.toString('hex');
923 var addressBuffer = ethUtil.privateToAddress(privKeyBuffer); 924 var addressBuffer = ethUtil.privateToAddress(privKeyBuffer);
@@ -1921,6 +1922,13 @@
1921 }, 1922 },
1922 }, 1923 },
1923 { 1924 {
1925 name: "DXN - DEXON",
1926 onSelect: function() {
1927 network = bitcoinjs.bitcoin.networks.bitcoin;
1928 setHdCoin(237);
1929 },
1930 },
1931 {
1924 name: "ECN - Ecoin", 1932 name: "ECN - Ecoin",
1925 onSelect: function() { 1933 onSelect: function() {
1926 network = bitcoinjs.bitcoin.networks.ecoin; 1934 network = bitcoinjs.bitcoin.networks.ecoin;