mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-18 16:32:18 +00:00
Merge pull request #263 from skironDotNet/bitcoin-green
Added Bitcoin Green
This commit is contained in:
@@ -1376,6 +1376,17 @@ bitcoinjs.bitcoin.networks.artax = {
|
|||||||
wif: 0x97,
|
wif: 0x97,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bitcoinjs.bitcoin.networks.bitcoingreen = {
|
||||||
|
messagePrefix: '\x18BitcoinGreen Signed Message:\n',
|
||||||
|
bip32: {
|
||||||
|
public: 0x0488B21E,
|
||||||
|
private: 0x0488ADE4,
|
||||||
|
},
|
||||||
|
pubKeyHash: 0x26,
|
||||||
|
scriptHash: 0x1CBD,
|
||||||
|
wif: 0x2E,
|
||||||
|
};
|
||||||
|
|
||||||
bitcoinjs.bitcoin.networks.anon = {
|
bitcoinjs.bitcoin.networks.anon = {
|
||||||
messagePrefix: '\x18ANON Signed Message:\n',
|
messagePrefix: '\x18ANON Signed Message:\n',
|
||||||
bip32: {
|
bip32: {
|
||||||
|
|||||||
@@ -1736,6 +1736,13 @@
|
|||||||
network = bitcoinjs.bitcoin.networks.testnet;
|
network = bitcoinjs.bitcoin.networks.testnet;
|
||||||
setHdCoin(1);
|
setHdCoin(1);
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "BITG - Bitcoin Green",
|
||||||
|
onSelect: function() {
|
||||||
|
network = bitcoinjs.bitcoin.networks.bitcoingreen;
|
||||||
|
setHdCoin(222);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "BTCP - Bitcoin Private",
|
name: "BTCP - Bitcoin Private",
|
||||||
|
|||||||
@@ -1319,6 +1319,13 @@ it('Allows selection of Artax', function(done) {
|
|||||||
};
|
};
|
||||||
testNetwork(done, params);
|
testNetwork(done, params);
|
||||||
});
|
});
|
||||||
|
it('Allows selection of BitcoinGreen', function(done) {
|
||||||
|
var params = {
|
||||||
|
selectText: "BITG - Bitcoin Green",
|
||||||
|
firstAddress: "GeNGm9SkEfwbsws3UrrUSE2sJeyWYjzraY",
|
||||||
|
};
|
||||||
|
testNetwork(done, params);
|
||||||
|
});
|
||||||
it('Allows selection of ANON', function(done) {
|
it('Allows selection of ANON', function(done) {
|
||||||
var params = {
|
var params = {
|
||||||
selectText: "ANON - ANON",
|
selectText: "ANON - ANON",
|
||||||
|
|||||||
Reference in New Issue
Block a user