From 1e2cc748b083c7a172c20ddc574c2aa1c2d8c5f2 Mon Sep 17 00:00:00 2001 From: xarakas Date: Fri, 11 May 2018 13:47:50 +0300 Subject: Add BTCP, BTCZ, ZCL, ZEN --- src/js/bitcoinjs-extensions.js | 55 ++++++++++++++++++++++++++++++++++++++++++ src/js/index.js | 40 ++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) (limited to 'src') diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index 9047874..d44ca0d 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js @@ -1210,3 +1210,58 @@ bitcoinjs.bitcoin.networks.xuez = { scriptHash: 0x12, wif: 0xd4 }; + +bitcoinjs.bitcoin.networks.bitcoinprivate = { + messagePrefix: '\x18BitcoinPrivate Signed Message:\n', + bip32: { + public: 0x0488B21E, + private: 0x0488ADE4, + }, + pubKeyHash: 0x1325, + scriptHash: 0x13AF, + wif: 0x80, +}; + +bitcoinjs.bitcoin.networks.bitcoinz = { + messagePrefix: '\x18BitcoinZ Signed Message:\n', + bip32: { + public: 0x0488B21E, + private: 0x0488ADE4, + }, + pubKeyHash: 0x1CB8, + scriptHash: 0x1CBD, + wif: 0x80, +}; + +bitcoinjs.bitcoin.networks.zclassic = { + messagePrefix: '\x18Zcash Signed Message:\n', + bip32: { + public: 0x0488B21E, + private: 0x0488ADE4, + }, + pubKeyHash: 0x1CB8, + scriptHash: 0x1CBD, + wif: 0x80, +}; + +bitcoinjs.bitcoin.networks.zencash = { + messagePrefix: '\x18Zcash Signed Message:\n', + bip32: { + public: 0x0488B21E, + private: 0x0488ADE4, + }, + pubKeyHash: 0x2089, + scriptHash: 0x2096, + wif: 0x80, +}; + +bitcoinjs.bitcoin.networks.energi = { + messagePrefix: 'DarkCoin Signed Message:\n', + bip32: { + public: 0x03B8C856, + private: 0xD7DC6E9F, + }, + pubKeyHash: 0x21, + scriptHash: 0x35, + wif: 0x6a, +}; \ No newline at end of file diff --git a/src/js/index.js b/src/js/index.js index 9d34563..567a3f7 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -1646,6 +1646,22 @@ setHdCoin(1); }, }, + { + name: "BTCP - Bitcoin Private", + segwitAvailable: true, + onSelect: function() { + network = bitcoinjs.bitcoin.networks.bitcoinprivate; + setHdCoin(183); + }, + }, + { + name: "BTCZ - Bitcoinz", + segwitAvailable: false, + onSelect: function() { + network = bitcoinjs.bitcoin.networks.bitcoinz; + setHdCoin(177); + }, + }, { name: "BTG - Bitcoin Gold", segwitAvailable: true, @@ -2071,6 +2087,14 @@ setHdCoin(7); }, }, + { + name: "NRG - Energi", + segwitAvailable: false, + onSelect: function() { + network = bitcoinjs.bitcoin.networks.energi; + setHdCoin(204); + }, + }, { name: "NRO - Neurocoin", segwitAvailable: false, @@ -2423,6 +2447,14 @@ setHdCoin(136); }, }, + { + name: "ZCL - Zclassic", + segwitAvailable: false, + onSelect: function() { + network = bitcoinjs.bitcoin.networks.zclassic; + setHdCoin(147); + }, + }, { name: "ZEC - Zcash", segwitAvailable: false, @@ -2439,6 +2471,14 @@ setHdCoin(225); }, }, + { + name: "ZEN - Zencash", + segwitAvailable: false, + onSelect: function() { + network = bitcoinjs.bitcoin.networks.zencash; + setHdCoin(121); + }, + }, ] var clients = [ -- cgit v1.2.3