aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rw-r--r--src/js/bitcoinjs-extensions.js11
-rw-r--r--src/js/index.js7
-rw-r--r--src/js/segwit-parameters.js26
3 files changed, 44 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index 17475b1..7446bd7 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -1739,6 +1739,17 @@ libs.bitcoin.networks.elastos = {
1739 wif: 0xef // TODO set this correctly, same as BTC for now 1739 wif: 0xef // TODO set this correctly, same as BTC for now
1740}; 1740};
1741 1741
1742libs.bitcoin.networks.sugarchain = {
1743 messagePrefix: '\x18Sugarchain Signed Message:\n',
1744 bip32: {
1745 public: 0x0488B21E,
1746 private: 0x0488ADE4,
1747 },
1748 pubKeyHash: 0x3f,
1749 scriptHash: 0x7d,
1750 wif: 0x80
1751};
1752
1742// https://github.com/libs.bitcoinjs-lib/blob/3f6f5ef97a1ee1b8337865209282c0095e22b2e7/src/networks.js 1753// https://github.com/libs.bitcoinjs-lib/blob/3f6f5ef97a1ee1b8337865209282c0095e22b2e7/src/networks.js
1743libs.bitcoin.networks.regtest = { 1754libs.bitcoin.networks.regtest = {
1744 messagePrefix: '\x18Bitcoin Signed Message:\n', 1755 messagePrefix: '\x18Bitcoin Signed Message:\n',
diff --git a/src/js/index.js b/src/js/index.js
index c2d34a7..841a27f 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -3092,6 +3092,13 @@
3092 }, 3092 },
3093 }, 3093 },
3094 { 3094 {
3095 name: "SUGAR - Sugarchain",
3096 onSelect: function() {
3097 network = libs.bitcoin.networks.sugarchain;
3098 setHdCoin(408);
3099 },
3100 },
3101 {
3095 name: "SWTC - Jingtum", 3102 name: "SWTC - Jingtum",
3096 onSelect: function() { 3103 onSelect: function() {
3097 network = libs.bitcoin.networks.bitcoin; 3104 network = libs.bitcoin.networks.bitcoin;
diff --git a/src/js/segwit-parameters.js b/src/js/segwit-parameters.js
index d5ea419..0c41bf7 100644
--- a/src/js/segwit-parameters.js
+++ b/src/js/segwit-parameters.js
@@ -683,4 +683,30 @@ libs.bitcoin.networks.deeponion.p2wpkhInP2sh = {
683 wif: 0x9f 683 wif: 0x9f
684}; 684};
685 685
686libs.bitcoin.networks.sugarchain.p2wpkh = {
687 baseNetwork: "sugarchain",
688 messagePrefix: '\x1DSugarchain Signed Message:\n',
689 bech32: 'sugar',
690 bip32: {
691 public: 0x04b24746,
692 private: 0x04b2430c
693 },
694 pubKeyHash: 0x3f,
695 scriptHash: 0x7d,
696 wif: 0x80
697};
698
699libs.bitcoin.networks.sugarchain.p2wpkhInP2sh = {
700 baseNetwork: "sugarchain",
701 messagePrefix: '\x1DSugarchain Signed Message:\n',
702 bech32: 'sugar',
703 bip32: {
704 public: 0x049d7cb2,
705 private: 0x049d7878
706 },
707 pubKeyHash: 0x3f,
708 scriptHash: 0x7d,
709 wif: 0x80
710};
711
686})(); 712})();