Added BITG - Bitcoin Green

This commit is contained in:
Pawel Cioch
2018-10-10 17:53:06 -05:00
parent 37f237239a
commit 8b2a093c8b
3 changed files with 25 additions and 0 deletions

View File

@@ -1375,3 +1375,14 @@ bitcoinjs.bitcoin.networks.artax = {
scriptHash: 0x1CBD,
wif: 0x97,
};
bitcoinjs.bitcoin.networks.bitcoingreen = {
messagePrefix: '\x18BitcoinGreen Signed Message:\n',
bip32: {
public: 0x0488B21E,
private: 0x0488ADE4,
},
pubKeyHash: 0x26,
scriptHash: 0x1CBD,
wif: 0x2E,
};

View File

@@ -1729,6 +1729,13 @@
network = bitcoinjs.bitcoin.networks.testnet;
setHdCoin(1);
},
},
{
name: "BITG - Bitcoin Green",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.bitcoingreen;
setHdCoin(222);
},
},
{
name: "BTCP - Bitcoin Private",

View File

@@ -1319,6 +1319,13 @@ it('Allows selection of Artax', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of BitcoinGreen', function(done) {
var params = {
selectText: "BITG - Bitcoin Green",
firstAddress: "GeNGm9SkEfwbsws3UrrUSE2sJeyWYjzraY",
};
testNetwork(done, params);
});
// BIP39 seed is set from phrase