aboutsummaryrefslogtreecommitdiff
path: root/src/js/index.js
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2020-10-19 09:26:29 +1100
committerGitHub <noreply@github.com>2020-10-19 09:26:29 +1100
commit30e3d246d494158b93550df5e70bcabc5f26f7c3 (patch)
tree145f52c2a15baac5e4c885ee95926e7699fcf58e /src/js/index.js
parent4669c88c672b0ec2ac636cae96a3fe2db94e2791 (diff)
parent647410b4a66b42bf6ff02713f5106c95b061d025 (diff)
downloadBIP39-30e3d246d494158b93550df5e70bcabc5f26f7c3.tar.gz
BIP39-30e3d246d494158b93550df5e70bcabc5f26f7c3.tar.zst
BIP39-30e3d246d494158b93550df5e70bcabc5f26f7c3.zip
Merge pull request #434 from Joohansson/nanocurrency
Added support for NANO currency
Diffstat (limited to 'src/js/index.js')
-rw-r--r--src/js/index.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/js/index.js b/src/js/index.js
index 114f74a..cb60941 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -1197,6 +1197,15 @@
1197 privkey = keypair.secret(); 1197 privkey = keypair.secret();
1198 pubkey = address = keypair.publicKey(); 1198 pubkey = address = keypair.publicKey();
1199 } 1199 }
1200
1201 // Nano currency
1202 if (networks[DOM.network.val()].name == "NANO - Nano") {
1203 var nanoKeypair = libs.nanoUtil.getKeypair(index, seed);
1204 privkey = nanoKeypair.privKey;
1205 pubkey = nanoKeypair.pubKey;
1206 address = nanoKeypair.address;
1207 }
1208
1200 if ((networks[DOM.network.val()].name == "NAS - Nebulas")) { 1209 if ((networks[DOM.network.val()].name == "NAS - Nebulas")) {
1201 var privKeyBuffer = keyPair.d.toBuffer(32); 1210 var privKeyBuffer = keyPair.d.toBuffer(32);
1202 var nebulasAccount = libs.nebulas.Account.NewAccount(); 1211 var nebulasAccount = libs.nebulas.Account.NewAccount();
@@ -2854,6 +2863,13 @@
2854 }, 2863 },
2855 }, 2864 },
2856 { 2865 {
2866 name: "NANO - Nano",
2867 onSelect: function() {
2868 network = network = libs.nanoUtil.dummyNetwork;
2869 setHdCoin(165);
2870 },
2871 },
2872 {
2857 name: "NAV - Navcoin", 2873 name: "NAV - Navcoin",
2858 onSelect: function() { 2874 onSelect: function() {
2859 network = libs.bitcoin.networks.navcoin; 2875 network = libs.bitcoin.networks.navcoin;