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 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; |