aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/bitcoinjs-extensions.js11
-rw-r--r--src/js/index.js7
-rw-r--r--tests/spec/tests.js7
3 files changed, 25 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index 5ba584e..7ac8ed4 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -1462,4 +1462,15 @@ bitcoinjs.bitcoin.networks.blocknode_testnet = {
1462 pubKeyHash: 0x55, 1462 pubKeyHash: 0x55,
1463 scriptHash: 0x7d, 1463 scriptHash: 0x7d,
1464 wif: 0x89, 1464 wif: 0x89,
1465};
1466
1467bitcoinjs.bitcoin.networks.litecoinz = {
1468 messagePrefix: '\x18LitecoinZ Signed Message:\n',
1469 bip32: {
1470 public: 0x0488B21E,
1471 private: 0x0488ADE3,
1472 },
1473 pubKeyHash: 0x0AB3,
1474 scriptHash: 0x0AB8,
1475 wif: 0x80,
1465}; \ No newline at end of file 1476}; \ No newline at end of file
diff --git a/src/js/index.js b/src/js/index.js
index 8322115..4601848 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -2136,6 +2136,13 @@
2136 }, 2136 },
2137 }, 2137 },
2138 { 2138 {
2139 name: "LTZ - LitecoinZ",
2140 onSelect: function() {
2141 network = bitcoinjs.bitcoin.networks.litecoinz;
2142 setHdCoin(221);
2143 },
2144 },
2145 {
2139 name: "LYNX - Lynx", 2146 name: "LYNX - Lynx",
2140 onSelect: function() { 2147 onSelect: function() {
2141 network = bitcoinjs.bitcoin.networks.lynx; 2148 network = bitcoinjs.bitcoin.networks.lynx;
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index 0bb56f8..5c23f8b 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -1376,6 +1376,13 @@ it('Allows selection of Blocknode Testnet', function(done) {
1376 }; 1376 };
1377 testNetwork(done, params); 1377 testNetwork(done, params);
1378}); 1378});
1379it('Allows selection of LitecoinZ', function(done) {
1380 var params = {
1381 selectText: "LTZ - LitecoinZ",
1382 firstAddress: "L1VTXju7hLgKV4T7fGXS9sKsnm2gmtRCmyw",
1383 };
1384 testNetwork(done, params);
1385});
1379 1386
1380// BIP39 seed is set from phrase 1387// BIP39 seed is set from phrase
1381it('Sets the bip39 seed from the prhase', function(done) { 1388it('Sets the bip39 seed from the prhase', function(done) {