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 b784f8c..8e6b106 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -931,6 +931,19 @@
931 privkey = ethUtil.addHexPrefix(privkey); 931 privkey = ethUtil.addHexPrefix(privkey);
932 pubkey = ethUtil.addHexPrefix(pubkey); 932 pubkey = ethUtil.addHexPrefix(pubkey);
933 } 933 }
934
935 // Stellar is different
936 if (networks[DOM.network.val()].name == "XLM - Stellar") {
937 var purpose = parseIntNoNaN(DOM.bip44purpose.val(), 44);
938 var coin = parseIntNoNaN(DOM.bip44coin.val(), 0);
939 var path = "m/";
940 path += purpose + "'/";
941 path += coin + "'/" + index + "'";
942 var keypair = stellarUtil.getKeypair(path, seed);
943 indexText = path;
944 privkey = keypair.secret();
945 pubkey = address = keypair.publicKey();
946 }
934 if ((networks[DOM.network.val()].name == "NAS - Nebulas")) { 947 if ((networks[DOM.network.val()].name == "NAS - Nebulas")) {
935 var NasAccount = require("nebulas-account"); 948 var NasAccount = require("nebulas-account");
936 var privKeyBuffer = keyPair.d.toBuffer(32); 949 var privKeyBuffer = keyPair.d.toBuffer(32);
@@ -2742,6 +2755,13 @@
2742 }, 2755 },
2743 }, 2756 },
2744 { 2757 {
2758 name: "XLM - Stellar",
2759 onSelect: function() {
2760 network = stellarUtil.dummyNetwork;
2761 setHdCoin(148);
2762 },
2763 },
2764 {
2745 name: "XMY - Myriadcoin", 2765 name: "XMY - Myriadcoin",
2746 onSelect: function() { 2766 onSelect: function() {
2747 network = bitcoinjs.bitcoin.networks.myriadcoin; 2767 network = bitcoinjs.bitcoin.networks.myriadcoin;