aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriancoleman <1281387+iancoleman@users.noreply.github.com>2018-08-14 09:10:43 +1000
committerGitHub <noreply@github.com>2018-08-14 09:10:43 +1000
commit43e5cabfcf2d24182ba19da0d6b0d43c4d70962e (patch)
treeac42e471ba2dd7936c728cd79e3c6e5878b6b4c1 /src
parentc1a5e79c5fdb556f2cedfeba583ccafb5a997373 (diff)
parentefe95a35c145460458f3277a5dd589f170464f3d (diff)
downloadBIP39-43e5cabfcf2d24182ba19da0d6b0d43c4d70962e.tar.gz
BIP39-43e5cabfcf2d24182ba19da0d6b0d43c4d70962e.tar.zst
BIP39-43e5cabfcf2d24182ba19da0d6b0d43c4d70962e.zip
Merge pull request #234 from h4x3rotab/h4x3rotab-btg
Add SegWit support for BTG
Diffstat (limited to 'src')
-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})();