Add BitCloud and Megacoin

This commit is contained in:
David B
2018-09-19 17:37:54 +02:00
committed by David B
parent 2575538b25
commit 5ed5f6612d
3 changed files with 50 additions and 0 deletions

View File

@@ -440,6 +440,17 @@ bitcoinjs.bitcoin.networks.bitcoinplus = {
wif: 0x99,
};
bitcoinjs.bitcoin.networks.bitcloud = {
messagePrefix: '\x18BitCloud Signed Message:\n',
bip32: {
public: 0x0488B21E,
private: 0x0488ADE4,
},
pubKeyHash: 0x19,
scriptHash: 0x05,
wif: 0x99,
};
bitcoinjs.bitcoin.networks.bitcore = {
messagePrefix: '\x18BitCore Signed Message:\n',
bip32: {
@@ -847,6 +858,17 @@ bitcoinjs.bitcoin.networks.lynx = {
wif: 0xad,
};
bitcoinjs.bitcoin.networks.megacoin = {
messagePrefix: '\x18Megacoin Signed Message:\n',
bip32: {
public: 0x0488B21E,
private: 0x0488ADE4,
},
pubKeyHash: 0x32,
scriptHash: 0x05,
wif: 0xB2,
};
bitcoinjs.bitcoin.networks.minexcoin = {
messagePrefix: '\x18Bitcoin Signed Message:\n',
bip32: {

View File

@@ -1744,6 +1744,13 @@
setHdCoin(177);
},
},
{
name: "BTDX - BitCloud",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.bitcloud;
setHdCoin(218);
},
},
{
name: "BTG - Bitcoin Gold",
onSelect: function() {
@@ -2114,6 +2121,13 @@
setHdCoin(13);
},
},
{
name: "MEC - Megacoin",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.megacoin;
setHdCoin(217);
},
},
{
name: "MIX - MIX",
segwitAvailable: false,

View File

@@ -704,6 +704,13 @@ it('Allows selection of Bitcoinz', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of BitCloud', function(done) {
var params = {
selectText: "BTDX - BitCloud",
firstAddress: "BE9tnWxiR7ALgVhG8LLDi2W9pvtjzZMFoM",
};
testNetwork(done, params);
});
it('Allows selection of Bitcore', function(done) {
var params = {
selectText: "BTX - Bitcore",
@@ -956,6 +963,13 @@ it('Allows selection of Lynx', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of Megacoin', function(done) {
var params = {
selectText: "MEC - Megacoin",
firstAddress: "MHHRRPHcF8DvQpEySFF9M6fR8Qv4JH2fFC",
};
testNetwork(done, params);
});
it('Allows selection of Minexcoin', function(done) {
var params = {
selectText: "MNX - Minexcoin",