X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjs%2Findex.js;h=cb60941b1bca39f98a7f87e91fce2cecfe125a95;hb=647410b4a66b42bf6ff02713f5106c95b061d025;hp=114f74ae0e0094d566443fa20b21d81ab1a14e8f;hpb=4669c88c672b0ec2ac636cae96a3fe2db94e2791;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git 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 @@ privkey = keypair.secret(); pubkey = address = keypair.publicKey(); } + + // Nano currency + if (networks[DOM.network.val()].name == "NANO - Nano") { + var nanoKeypair = libs.nanoUtil.getKeypair(index, seed); + privkey = nanoKeypair.privKey; + pubkey = nanoKeypair.pubKey; + address = nanoKeypair.address; + } + if ((networks[DOM.network.val()].name == "NAS - Nebulas")) { var privKeyBuffer = keyPair.d.toBuffer(32); var nebulasAccount = libs.nebulas.Account.NewAccount(); @@ -2853,6 +2862,13 @@ setHdCoin(184); }, }, + { + name: "NANO - Nano", + onSelect: function() { + network = network = libs.nanoUtil.dummyNetwork; + setHdCoin(165); + }, + }, { name: "NAV - Navcoin", onSelect: function() {