diff options
author | jhonkus <putukn@gmail.com> | 2020-11-27 06:27:21 +0800 |
---|---|---|
committer | jhonkus <putukn@gmail.com> | 2020-12-07 19:43:20 +0800 |
commit | 0cb81e1117053c93debfa501a5bdb11169636dd2 (patch) | |
tree | 1bfa030d0e41df5addb73b4f077b4dabd7f2405f | |
parent | 32ade2fbf79415f8335d96c942b5f5569829820d (diff) | |
download | BIP39-0cb81e1117053c93debfa501a5bdb11169636dd2.tar.gz BIP39-0cb81e1117053c93debfa501a5bdb11169636dd2.tar.zst BIP39-0cb81e1117053c93debfa501a5bdb11169636dd2.zip |
Add ZooBC coin support
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 12 | ||||
-rw-r--r-- | src/js/index.js | 7 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index 08a6be8..7e637e3 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -1553,6 +1553,18 @@ libs.bitcoin.networks.hush3 = { | |||
1553 | wif: 0xBC, | 1553 | wif: 0xBC, |
1554 | }; | 1554 | }; |
1555 | 1555 | ||
1556 | libs.bitcoin.networks.zoobc = { | ||
1557 | messagePrefix: '\x18ZooBC Signed Message:\n', | ||
1558 | bech32: 'bc', | ||
1559 | bip32: { | ||
1560 | public: 0x0488b21e, | ||
1561 | private: 0x0488ade4, | ||
1562 | }, | ||
1563 | pubKeyHash: 0x00, | ||
1564 | scriptHash: 0x05, | ||
1565 | wif: 0x80, | ||
1566 | }; | ||
1567 | |||
1556 | libs.bitcoin.networks.zclassic = { | 1568 | libs.bitcoin.networks.zclassic = { |
1557 | messagePrefix: '\x18Zcash Signed Message:\n', | 1569 | messagePrefix: '\x18Zcash Signed Message:\n', |
1558 | bip32: { | 1570 | bip32: { |
diff --git a/src/js/index.js b/src/js/index.js index fd8c16b..61a2dd5 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -3541,6 +3541,13 @@ | |||
3541 | }, | 3541 | }, |
3542 | }, | 3542 | }, |
3543 | { | 3543 | { |
3544 | name: "ZBC - ZooBlockchain", | ||
3545 | onSelect: function () { | ||
3546 | network = libs.bitcoin.networks.zoobc; | ||
3547 | setHdCoin(883); | ||
3548 | }, | ||
3549 | }, | ||
3550 | { | ||
3544 | name: "ZCL - Zclassic", | 3551 | name: "ZCL - Zclassic", |
3545 | onSelect: function() { | 3552 | onSelect: function() { |
3546 | network = libs.bitcoin.networks.zclassic; | 3553 | network = libs.bitcoin.networks.zclassic; |