add BTG (Bitcoin Gold/bgold)

This commit is contained in:
Rik Snel
2017-11-14 09:05:50 +01:00
parent b57b721e2c
commit 3960807353
3 changed files with 38 additions and 0 deletions

View File

@@ -22422,6 +22422,17 @@ bitcoinjs.bitcoin.networks.nubits = {
wif: 0x96,
};
bitcoinjs.bitcoin.networks.bgold = {
messagePrefix: 'unused',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4
},
pubKeyHash: 38,
scriptHash: 23,
wif: 128
};
bitcoinjs.bitcoin.networks.bitcoinCashBitbpay = {
messagePrefix: '\x18Bitcoin Signed Message:\n',
bip32: {
@@ -47295,6 +47306,14 @@ window.Entropy = new (function() {
setHdCoin(1);
},
},
{
name: "BTG - Bitcoin Gold",
p2wpkhNestedInP2shAvailable: true,
onSelect: function() {
network = bitcoinjs.bitcoin.networks.bgold;
setHdCoin(0);
},
},
{
name: "CLAM - Clams",
p2wpkhNestedInP2shAvailable: false,

View File

@@ -251,6 +251,17 @@ bitcoinjs.bitcoin.networks.nubits = {
wif: 0x96,
};
bitcoinjs.bitcoin.networks.bgold = {
messagePrefix: 'unused',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4
},
pubKeyHash: 38,
scriptHash: 23,
wif: 128
};
bitcoinjs.bitcoin.networks.bitcoinCashBitbpay = {
messagePrefix: '\x18Bitcoin Signed Message:\n',
bip32: {

View File

@@ -1317,6 +1317,14 @@
setHdCoin(1);
},
},
{
name: "BTG - Bitcoin Gold",
p2wpkhNestedInP2shAvailable: true,
onSelect: function() {
network = bitcoinjs.bitcoin.networks.bgold;
setHdCoin(0);
},
},
{
name: "CLAM - Clams",
p2wpkhNestedInP2shAvailable: false,