aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/bitcoinjs-extensions.js11
-rw-r--r--src/js/index.js9
-rw-r--r--tests/spec/tests.js9
3 files changed, 27 insertions, 2 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
1465bitcoinjs.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
1465bitcoinjs.bitcoin.networks.zclassic = { 1476bitcoinjs.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() {
diff --git a/tests/spec/tests.js b/tests/spec/tests.js
index 6f9fd4f..c9c0e6e 100644
--- a/tests/spec/tests.js
+++ b/tests/spec/tests.js
@@ -1441,11 +1441,18 @@ it('Allows selection of Callisto', function(done) {
1441}); 1441});
1442it('Allows selection of HUSH', function(done) { 1442it('Allows selection of HUSH', function(done) {
1443 var params = { 1443 var params = {
1444 selectText: "HUSH - Hush", 1444 selectText: "HUSH - Hush (Legacy)",
1445 firstAddress: "t1g6rLXUnJaiJuu4q4zmJjoa9Gk4fwKpiuA", 1445 firstAddress: "t1g6rLXUnJaiJuu4q4zmJjoa9Gk4fwKpiuA",
1446 }; 1446 };
1447 testNetwork(done, params); 1447 testNetwork(done, params);
1448}); 1448});
1449it('Allows selection of HUSH3', function(done) {
1450 var params = {
1451 selectText: "HUSH - Hush3",
1452 firstAddress: "RXWSQhwvw5jHPGP8bjwJhWoRnMLBnuPDKD",
1453 };
1454 testNetwork(done, params);
1455});
1449it('Allows selection of ExchangeCoin', function(done) { 1456it('Allows selection of ExchangeCoin', function(done) {
1450 var params = { 1457 var params = {
1451 selectText: "EXCC - ExchangeCoin", 1458 selectText: "EXCC - ExchangeCoin",