aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/bitcoinjs-extensions.js2
-rw-r--r--src/js/segwit-parameters.js26
2 files changed, 27 insertions, 1 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index 06ad221..a613000 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -297,7 +297,7 @@ bitcoinjs.bitcoin.networks.nubits = {
297}; 297};
298 298
299bitcoinjs.bitcoin.networks.bgold = { 299bitcoinjs.bitcoin.networks.bgold = {
300 messagePrefix: 'unused', 300 messagePrefix: '\x1DBitcoin Gold Signed Message:\n',
301 bip32: { 301 bip32: {
302 public: 0x0488b21e, 302 public: 0x0488b21e,
303 private: 0x0488ade4 303 private: 0x0488ade4
diff --git a/src/js/segwit-parameters.js b/src/js/segwit-parameters.js
index b4530d5..55acb9c 100644
--- a/src/js/segwit-parameters.js
+++ b/src/js/segwit-parameters.js
@@ -133,4 +133,30 @@ bitcoinjs.bitcoin.networks.vertcoin.p2wpkhInP2sh = {
133 wif: 0x80 133 wif: 0x80
134}; 134};
135 135
136bitcoinjs.bitcoin.networks.bgold.p2wpkh = {
137 baseNetwork: "bgold",
138 messagePrefix: '\x1DBitcoin Gold Signed Message:\n',
139 bech32: 'btg',
140 bip32: {
141 public: 0x04b24746,
142 private: 0x04b2430c
143 },
144 pubKeyHash: 0x26,
145 scriptHash: 0x17,
146 wif: 0x80,
147};
148
149bitcoinjs.bitcoin.networks.bgold.p2wpkhInP2sh = {
150 baseNetwork: "bgold",
151 messagePrefix: '\x1DBitcoin Gold Signed Message:\n',
152 bech32: 'btg',
153 bip32: {
154 public: 0x049d7cb2,
155 private: 0x049d7878
156 },
157 pubKeyHash: 0x26,
158 scriptHash: 0x17,
159 wif: 0x80,
160};
161
136})(); 162})();