diff options
Diffstat (limited to 'src/js/index.js')
-rw-r--r-- | src/js/index.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/js/index.js b/src/js/index.js index 2c2e99a..a00aa66 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -1186,6 +1186,15 @@ | |||
1186 | privkey = keypair.secret(); | 1186 | privkey = keypair.secret(); |
1187 | pubkey = address = keypair.publicKey(); | 1187 | pubkey = address = keypair.publicKey(); |
1188 | } | 1188 | } |
1189 | |||
1190 | // Nano currency | ||
1191 | if (networks[DOM.network.val()].name == "NANO - Nano") { | ||
1192 | var nanoKeypair = libs.nanoUtil.getKeypair(index, seed); | ||
1193 | privkey = nanoKeypair.privKey; | ||
1194 | pubkey = nanoKeypair.pubKey; | ||
1195 | address = nanoKeypair.address; | ||
1196 | } | ||
1197 | |||
1189 | if ((networks[DOM.network.val()].name == "NAS - Nebulas")) { | 1198 | if ((networks[DOM.network.val()].name == "NAS - Nebulas")) { |
1190 | var privKeyBuffer = keyPair.d.toBuffer(32); | 1199 | var privKeyBuffer = keyPair.d.toBuffer(32); |
1191 | var nebulasAccount = libs.nebulas.Account.NewAccount(); | 1200 | var nebulasAccount = libs.nebulas.Account.NewAccount(); |
@@ -2835,6 +2844,13 @@ | |||
2835 | }, | 2844 | }, |
2836 | }, | 2845 | }, |
2837 | { | 2846 | { |
2847 | name: "NANO - Nano", | ||
2848 | onSelect: function() { | ||
2849 | network = network = libs.nanoUtil.dummyNetwork; | ||
2850 | setHdCoin(165); | ||
2851 | }, | ||
2852 | }, | ||
2853 | { | ||
2838 | name: "NAV - Navcoin", | 2854 | name: "NAV - Navcoin", |
2839 | onSelect: function() { | 2855 | onSelect: function() { |
2840 | network = libs.bitcoin.networks.navcoin; | 2856 | network = libs.bitcoin.networks.navcoin; |