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.js15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/js/index.js b/src/js/index.js
index f3302a6..0ecb735 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -637,9 +637,9 @@
637 } 637 }
638 638
639 function validateRootKey(rootKeyBase58) { 639 function validateRootKey(rootKeyBase58) {
640 if(isGRS()) 640 if(isGRS())
641 return validateRootKeyGRS(rootKeyBase58); 641 return validateRootKeyGRS(rootKeyBase58);
642 642
643 // try various segwit network params since this extended key may be from 643 // try various segwit network params since this extended key may be from
644 // any one of them. 644 // any one of them.
645 if (networkHasSegwit()) { 645 if (networkHasSegwit()) {
@@ -991,7 +991,7 @@
991 privkey = keyPair.toWIF(); 991 privkey = keyPair.toWIF();
992 // BIP38 encode private key if required 992 // BIP38 encode private key if required
993 if (useBip38) { 993 if (useBip38) {
994 if(isGRS()) 994 if(isGRS())
995 privkey = groestlcoinjsBip38.encrypt(keyPair.d.toBuffer(), false, bip38password, function(p) { 995 privkey = groestlcoinjsBip38.encrypt(keyPair.d.toBuffer(), false, bip38password, function(p) {
996 console.log("Progressed " + p.percent.toFixed(1) + "% for index " + index); 996 console.log("Progressed " + p.percent.toFixed(1) + "% for index " + index);
997 }, null, networks[DOM.network.val()].name.includes("Testnet")); 997 }, null, networks[DOM.network.val()].name.includes("Testnet"));
@@ -1121,7 +1121,7 @@
1121 else if (isP2wpkhInP2sh) { 1121 else if (isP2wpkhInP2sh) {
1122 address = groestlcoinjs.address.fromOutputScript(scriptpubkey, network) 1122 address = groestlcoinjs.address.fromOutputScript(scriptpubkey, network)
1123 } 1123 }
1124 } 1124 }
1125 //non-segwit addresses are handled by using groestlcoinjs for bip32RootKey 1125 //non-segwit addresses are handled by using groestlcoinjs for bip32RootKey
1126 } 1126 }
1127 1127
@@ -2841,6 +2841,13 @@
2841 }, 2841 },
2842 }, 2842 },
2843 { 2843 {
2844 name: "THT - Thought",
2845 onSelect: function() {
2846 network = bitcoinjs.bitcoin.networks.thought;
2847 setHdCoin(1618);
2848 },
2849 },
2850 {
2844 name: "TOA - Toa", 2851 name: "TOA - Toa",
2845 onSelect: function() { 2852 onSelect: function() {
2846 network = bitcoinjs.bitcoin.networks.toa; 2853 network = bitcoinjs.bitcoin.networks.toa;