diff options
author | iancoleman <1281387+iancoleman@users.noreply.github.com> | 2018-07-26 09:29:34 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-26 09:29:34 +1000 |
commit | 9d4e17928a9ed1bfe3d71eb1a60ed303b41019d9 (patch) | |
tree | 4e0bda7e54f3e5a16ada91bda07273edbcc1b23e | |
parent | 0f9081e2b51c7fd07123369016fb92ce98f72d79 (diff) | |
parent | 60727c51752cf2cb7af2ae3d64458843270e3ad6 (diff) | |
download | BIP39-9d4e17928a9ed1bfe3d71eb1a60ed303b41019d9.tar.gz BIP39-9d4e17928a9ed1bfe3d71eb1a60ed303b41019d9.tar.zst BIP39-9d4e17928a9ed1bfe3d71eb1a60ed303b41019d9.zip |
Merge pull request #233 from skironDotNet/hushcoin
Add HUSH coin, same as BTCZ but diffrent bip44 coin type
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 11 | ||||
-rw-r--r-- | src/js/index.js | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index 8db0f8b..d5c3ff9 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -1233,6 +1233,17 @@ bitcoinjs.bitcoin.networks.bitcoinz = { | |||
1233 | wif: 0x80, | 1233 | wif: 0x80, |
1234 | }; | 1234 | }; |
1235 | 1235 | ||
1236 | bitcoinjs.bitcoin.networks.hush = { | ||
1237 | messagePrefix: '\x18Hush Signed Message:\n', | ||
1238 | bip32: { | ||
1239 | public: 0x0488B21E, | ||
1240 | private: 0x0488ADE4, | ||
1241 | }, | ||
1242 | pubKeyHash: 0x1CB8, | ||
1243 | scriptHash: 0x1CBD, | ||
1244 | wif: 0x80, | ||
1245 | }; | ||
1246 | |||
1236 | bitcoinjs.bitcoin.networks.zclassic = { | 1247 | bitcoinjs.bitcoin.networks.zclassic = { |
1237 | messagePrefix: '\x18Zcash Signed Message:\n', | 1248 | messagePrefix: '\x18Zcash Signed Message:\n', |
1238 | bip32: { | 1249 | bip32: { |
diff --git a/src/js/index.js b/src/js/index.js index 1b56d6c..cf3d5aa 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -1968,6 +1968,13 @@ | |||
1968 | setHdCoin(168); | 1968 | setHdCoin(168); |
1969 | }, | 1969 | }, |
1970 | }, | 1970 | }, |
1971 | { | ||
1972 | name: "HUSH - Hush", | ||
1973 | onSelect: function() { | ||
1974 | network = bitcoinjs.bitcoin.networks.hush; | ||
1975 | setHdCoin(197); | ||
1976 | }, | ||
1977 | }, | ||
1971 | { | 1978 | { |
1972 | name: "INSN - Insane", | 1979 | name: "INSN - Insane", |
1973 | onSelect: function() { | 1980 | onSelect: function() { |