diff options
author | Pawel Cioch <pawel@greenhex.net> | 2019-09-10 22:11:28 -0500 |
---|---|---|
committer | Pawel Cioch <pawel@greenhex.net> | 2019-09-10 22:11:28 -0500 |
commit | 318ec4dc9f37c2ea4fc8de2fd487602c3cd05cb9 (patch) | |
tree | 98f1cc7405aca4b91b9e5f290b7356d13e0960ef /src | |
parent | e440d504fbc80fe11366e24dccf945c43aaf52df (diff) | |
download | BIP39-318ec4dc9f37c2ea4fc8de2fd487602c3cd05cb9.tar.gz BIP39-318ec4dc9f37c2ea4fc8de2fd487602c3cd05cb9.tar.zst BIP39-318ec4dc9f37c2ea4fc8de2fd487602c3cd05cb9.zip |
Added HUSH3 encoding and kept old as Legacy for users to be able to cross verify
Diffstat (limited to 'src')
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 11 | ||||
-rw-r--r-- | src/js/index.js | 9 |
2 files changed, 19 insertions, 1 deletions
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 = { | |||
1462 | wif: 0x80, | 1462 | wif: 0x80, |
1463 | }; | 1463 | }; |
1464 | 1464 | ||
1465 | bitcoinjs.bitcoin.networks.hush3 = { | ||
1466 | messagePrefix: '\x18Hush Signed Message:\n', | ||
1467 | bip32: { | ||
1468 | public: 0x0488B21E, | ||
1469 | private: 0x0488ADE4, | ||
1470 | }, | ||
1471 | pubKeyHash: 0x3C, | ||
1472 | scriptHash: 0x55, | ||
1473 | wif: 0xBC, | ||
1474 | }; | ||
1475 | |||
1465 | bitcoinjs.bitcoin.networks.zclassic = { | 1476 | bitcoinjs.bitcoin.networks.zclassic = { |
1466 | messagePrefix: '\x18Zcash Signed Message:\n', | 1477 | messagePrefix: '\x18Zcash Signed Message:\n', |
1467 | bip32: { | 1478 | 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,12 +2185,19 @@ | |||
2185 | }, | 2185 | }, |
2186 | }, | 2186 | }, |
2187 | { | 2187 | { |
2188 | name: "HUSH - Hush", | 2188 | name: "HUSH - Hush (Legacy)", |
2189 | onSelect: function() { | 2189 | onSelect: function() { |
2190 | network = bitcoinjs.bitcoin.networks.hush; | 2190 | network = bitcoinjs.bitcoin.networks.hush; |
2191 | setHdCoin(197); | 2191 | setHdCoin(197); |
2192 | }, | 2192 | }, |
2193 | }, | 2193 | }, |
2194 | { | ||
2195 | name: "HUSH - Hush3", | ||
2196 | onSelect: function() { | ||
2197 | network = bitcoinjs.bitcoin.networks.hush3; | ||
2198 | setHdCoin(197); | ||
2199 | }, | ||
2200 | }, | ||
2194 | { | 2201 | { |
2195 | name: "INSN - Insane", | 2202 | name: "INSN - Insane", |
2196 | onSelect: function() { | 2203 | onSelect: function() { |