mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-05-22 00:24:49 +00:00
Merge pull request #253 from dalijolijo/master
Add BitCloud (BTDX) and Megacoin (MEC)
This commit is contained in:
@@ -440,6 +440,17 @@ bitcoinjs.bitcoin.networks.bitcoinplus = {
|
|||||||
wif: 0x99,
|
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 = {
|
bitcoinjs.bitcoin.networks.bitcore = {
|
||||||
messagePrefix: '\x18BitCore Signed Message:\n',
|
messagePrefix: '\x18BitCore Signed Message:\n',
|
||||||
bip32: {
|
bip32: {
|
||||||
@@ -847,6 +858,17 @@ bitcoinjs.bitcoin.networks.lynx = {
|
|||||||
wif: 0xad,
|
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 = {
|
bitcoinjs.bitcoin.networks.minexcoin = {
|
||||||
messagePrefix: '\x18Bitcoin Signed Message:\n',
|
messagePrefix: '\x18Bitcoin Signed Message:\n',
|
||||||
bip32: {
|
bip32: {
|
||||||
|
|||||||
@@ -1744,6 +1744,13 @@
|
|||||||
setHdCoin(177);
|
setHdCoin(177);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "BTDX - BitCloud",
|
||||||
|
onSelect: function() {
|
||||||
|
network = bitcoinjs.bitcoin.networks.bitcloud;
|
||||||
|
setHdCoin(218);
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "BTG - Bitcoin Gold",
|
name: "BTG - Bitcoin Gold",
|
||||||
onSelect: function() {
|
onSelect: function() {
|
||||||
@@ -2114,6 +2121,13 @@
|
|||||||
setHdCoin(13);
|
setHdCoin(13);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "MEC - Megacoin",
|
||||||
|
onSelect: function() {
|
||||||
|
network = bitcoinjs.bitcoin.networks.megacoin;
|
||||||
|
setHdCoin(217);
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "MIX - MIX",
|
name: "MIX - MIX",
|
||||||
segwitAvailable: false,
|
segwitAvailable: false,
|
||||||
|
|||||||
@@ -704,6 +704,13 @@ it('Allows selection of Bitcoinz', function(done) {
|
|||||||
};
|
};
|
||||||
testNetwork(done, params);
|
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) {
|
it('Allows selection of Bitcore', function(done) {
|
||||||
var params = {
|
var params = {
|
||||||
selectText: "BTX - Bitcore",
|
selectText: "BTX - Bitcore",
|
||||||
@@ -956,6 +963,13 @@ it('Allows selection of Lynx', function(done) {
|
|||||||
};
|
};
|
||||||
testNetwork(done, params);
|
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) {
|
it('Allows selection of Minexcoin', function(done) {
|
||||||
var params = {
|
var params = {
|
||||||
selectText: "MNX - Minexcoin",
|
selectText: "MNX - Minexcoin",
|
||||||
|
|||||||
Reference in New Issue
Block a user