From d4fcdda9fbfde32d67588aa9d74d74c5606c239d Mon Sep 17 00:00:00 2001 From: Pawel Cioch Date: Mon, 10 Dec 2018 09:27:13 -0600 Subject: added LTZ - LitecoinZ https://litecoinz.org/ --- src/js/bitcoinjs-extensions.js | 11 +++++++++++ src/js/index.js | 7 +++++++ tests/spec/tests.js | 7 +++++++ 3 files changed, 25 insertions(+) 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 = { pubKeyHash: 0x55, scriptHash: 0x7d, wif: 0x89, +}; + +bitcoinjs.bitcoin.networks.litecoinz = { + messagePrefix: '\x18LitecoinZ Signed Message:\n', + bip32: { + public: 0x0488B21E, + private: 0x0488ADE3, + }, + pubKeyHash: 0x0AB3, + scriptHash: 0x0AB8, + wif: 0x80, }; \ 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 @@ -2135,6 +2135,13 @@ DOM.litecoinLtubContainer.removeClass("hidden"); }, }, + { + name: "LTZ - LitecoinZ", + onSelect: function() { + network = bitcoinjs.bitcoin.networks.litecoinz; + setHdCoin(221); + }, + }, { name: "LYNX - Lynx", onSelect: function() { 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) { }; testNetwork(done, params); }); +it('Allows selection of LitecoinZ', function(done) { + var params = { + selectText: "LTZ - LitecoinZ", + firstAddress: "L1VTXju7hLgKV4T7fGXS9sKsnm2gmtRCmyw", + }; + testNetwork(done, params); +}); // BIP39 seed is set from phrase it('Sets the bip39 seed from the prhase', function(done) { -- cgit v1.2.3