aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2019-03-14 21:17:14 +1100
committerGitHub <noreply@github.com>2019-03-14 21:17:14 +1100
commitdba22db54d6adc81660f4cca45edb30db3899ad9 (patch)
tree23e67e2939acde581c8c09d1fffc0365a7b3a3cd /src
parent74762b369e1446cede3db718d0f7348d0f57ab75 (diff)
parent6cbd3bc8c22256bf35df5d69d8ef6685590b66e4 (diff)
downloadBIP39-dba22db54d6adc81660f4cca45edb30db3899ad9.tar.gz
BIP39-dba22db54d6adc81660f4cca45edb30db3899ad9.tar.zst
BIP39-dba22db54d6adc81660f4cca45edb30db3899ad9.zip
Merge pull request #310 from boczeratul/master
Add definitions for DEXON (DXN)
Diffstat (limited to 'src')
-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;