diff options
author | iancoleman <1281387+iancoleman@users.noreply.github.com> | 2017-11-15 08:53:38 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-15 08:53:38 +1100 |
commit | e8ee368f189137fdadcca3d8dffe743c8bb20172 (patch) | |
tree | f311b3f9d3473fe7168f0ee73cff9ec3d7a366ee /src | |
parent | 107edb3454aa693c01f19a08bfcf09c2f3f121f9 (diff) | |
parent | 3960807353a4dfd44620d418ac7b2e393dccafd6 (diff) | |
download | BIP39-e8ee368f189137fdadcca3d8dffe743c8bb20172.tar.gz BIP39-e8ee368f189137fdadcca3d8dffe743c8bb20172.tar.zst BIP39-e8ee368f189137fdadcca3d8dffe743c8bb20172.zip |
Merge pull request #129 from rsnel/bgold
add BTG (Bitcoin Gold/bgold)
Diffstat (limited to 'src')
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 11 | ||||
-rw-r--r-- | src/js/index.js | 8 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index be73354..c98ff63 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -251,6 +251,17 @@ bitcoinjs.bitcoin.networks.nubits = { | |||
251 | wif: 0x96, | 251 | wif: 0x96, |
252 | }; | 252 | }; |
253 | 253 | ||
254 | bitcoinjs.bitcoin.networks.bgold = { | ||
255 | messagePrefix: 'unused', | ||
256 | bip32: { | ||
257 | public: 0x0488b21e, | ||
258 | private: 0x0488ade4 | ||
259 | }, | ||
260 | pubKeyHash: 38, | ||
261 | scriptHash: 23, | ||
262 | wif: 128 | ||
263 | }; | ||
264 | |||
254 | bitcoinjs.bitcoin.networks.bitcoinCashBitbpay = { | 265 | bitcoinjs.bitcoin.networks.bitcoinCashBitbpay = { |
255 | messagePrefix: '\x18Bitcoin Signed Message:\n', | 266 | messagePrefix: '\x18Bitcoin Signed Message:\n', |
256 | bip32: { | 267 | bip32: { |
diff --git a/src/js/index.js b/src/js/index.js index 8146f11..f291395 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -1318,6 +1318,14 @@ | |||
1318 | }, | 1318 | }, |
1319 | }, | 1319 | }, |
1320 | { | 1320 | { |
1321 | name: "BTG - Bitcoin Gold", | ||
1322 | p2wpkhNestedInP2shAvailable: true, | ||
1323 | onSelect: function() { | ||
1324 | network = bitcoinjs.bitcoin.networks.bgold; | ||
1325 | setHdCoin(0); | ||
1326 | }, | ||
1327 | }, | ||
1328 | { | ||
1321 | name: "CLAM - Clams", | 1329 | name: "CLAM - Clams", |
1322 | p2wpkhNestedInP2shAvailable: false, | 1330 | p2wpkhNestedInP2shAvailable: false, |
1323 | onSelect: function() { | 1331 | onSelect: function() { |