aboutsummaryrefslogtreecommitdiff
path: root/src/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/index.js')
-rw-r--r--src/js/index.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/js/index.js b/src/js/index.js
index bc15559..8699733 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -928,6 +928,19 @@
928 privkey = ethUtil.addHexPrefix(privkey); 928 privkey = ethUtil.addHexPrefix(privkey);
929 pubkey = ethUtil.addHexPrefix(pubkey); 929 pubkey = ethUtil.addHexPrefix(pubkey);
930 } 930 }
931 if ((networks[DOM.network.val()].name == "NAS - Nebulas")) {
932 var NasAccount = require("nebulas").Account;
933 var privKeyBuffer = keyPair.d.toBuffer(32);
934 // privkey = privKeyBuffer.toString('hex');
935 console.log(privkey);
936 var nasAccount = NasAccount.NewAccount(privKeyBuffer);
937 // var addressBuffer = ethUtil.privateToAddress(privKeyBuffer);
938 // var hexAddress = addressBuffer.toString('hex');
939 // var checksumAddress = ethUtil.toChecksumAddress(hexAddress);
940 address = nasAccount.getAddressString();
941 privkey = nasAccount.getPrivateKeyString();
942 pubkey = nasAccount.getPublicKeyString();
943 }
931 // Ripple values are different 944 // Ripple values are different
932 if (networks[DOM.network.val()].name == "XRP - Ripple") { 945 if (networks[DOM.network.val()].name == "XRP - Ripple") {
933 privkey = convertRipplePriv(privkey); 946 privkey = convertRipplePriv(privkey);
@@ -2224,6 +2237,13 @@
2224 }, 2237 },
2225 }, 2238 },
2226 { 2239 {
2240 name: "NAS - Nebulas",
2241 onSelect: function() {
2242 network = bitcoinjs.bitcoin.networks.bitcoin;
2243 setHdCoin(2718);
2244 },
2245 },
2246 {
2227 name: "NEBL - Neblio", 2247 name: "NEBL - Neblio",
2228 onSelect: function() { 2248 onSelect: function() {
2229 network = bitcoinjs.bitcoin.networks.neblio; 2249 network = bitcoinjs.bitcoin.networks.neblio;