]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
added LTZ - LitecoinZ https://litecoinz.org/
authorPawel Cioch <pawel@greenhex.net>
Mon, 10 Dec 2018 15:27:13 +0000 (09:27 -0600)
committerPawel Cioch <pawel@greenhex.net>
Mon, 10 Dec 2018 15:27:13 +0000 (09:27 -0600)
src/js/bitcoinjs-extensions.js
src/js/index.js
tests/spec/tests.js

index 5ba584ea040cb477cee5ba4ea80d7872c3295c31..7ac8ed401502a598d2d2e4b2e7daaf6314bb9d13 100644 (file)
@@ -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
index 83221154ab90543c487aa3e00de51baf6e549891..460184881c925611fba16504f06bbe433eee2836 100644 (file)
                 DOM.litecoinLtubContainer.removeClass("hidden");
             },
         },
+        {
+            name: "LTZ - LitecoinZ",
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.litecoinz;
+                setHdCoin(221);
+            },
+        },
         {
             name: "LYNX - Lynx",
             onSelect: function() {
index 0bb56f8ac6affee7b49ddcd9ca4f157a140eae73..5c23f8bb0700f26a5c0007a050d52f28f1f2de64 100644 (file)
@@ -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) {