aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorh4x3rotab <h4x3rotab@gmail.com>2018-07-31 17:55:34 +0800
committerGitHub <noreply@github.com>2018-07-31 17:55:34 +0800
commitefe95a35c145460458f3277a5dd589f170464f3d (patch)
treeaaf2a623442dedff7094655fef539ddae33dfe38 /src
parent8103d17b09437ca11337748e1168897e1a30f3a8 (diff)
downloadBIP39-efe95a35c145460458f3277a5dd589f170464f3d.tar.gz
BIP39-efe95a35c145460458f3277a5dd589f170464f3d.tar.zst
BIP39-efe95a35c145460458f3277a5dd589f170464f3d.zip
Add SegWit spec for Bitcoin Gold
Diffstat (limited to 'src')
-rw-r--r--src/js/segwit-parameters.js26
1 files changed, 26 insertions, 0 deletions
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})();