From 318ec4dc9f37c2ea4fc8de2fd487602c3cd05cb9 Mon Sep 17 00:00:00 2001 From: Pawel Cioch Date: Tue, 10 Sep 2019 22:11:28 -0500 Subject: Added HUSH3 encoding and kept old as Legacy for users to be able to cross verify --- src/js/bitcoinjs-extensions.js | 11 +++++++++++ src/js/index.js | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'src/js') diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index b37f58f..1a28628 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js @@ -1462,6 +1462,17 @@ bitcoinjs.bitcoin.networks.hush = { wif: 0x80, }; +bitcoinjs.bitcoin.networks.hush3 = { + messagePrefix: '\x18Hush Signed Message:\n', + bip32: { + public: 0x0488B21E, + private: 0x0488ADE4, + }, + pubKeyHash: 0x3C, + scriptHash: 0x55, + wif: 0xBC, +}; + bitcoinjs.bitcoin.networks.zclassic = { messagePrefix: '\x18Zcash Signed Message:\n', bip32: { diff --git a/src/js/index.js b/src/js/index.js index 4fac6f1..ab7cc00 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -2185,11 +2185,18 @@ }, }, { - name: "HUSH - Hush", + name: "HUSH - Hush (Legacy)", onSelect: function() { network = bitcoinjs.bitcoin.networks.hush; setHdCoin(197); }, + }, + { + name: "HUSH - Hush3", + onSelect: function() { + network = bitcoinjs.bitcoin.networks.hush3; + setHdCoin(197); + }, }, { name: "INSN - Insane", -- cgit v1.2.3