mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-28 05:10:41 +00:00
Merge pull request #335 from onnateldome/master
ADD support MONK, LTCt, DOGEt
This commit is contained in:
@@ -172,6 +172,17 @@ bitcoinjs.bitcoin.networks.dogecoin = {
|
|||||||
wif: 0x9e
|
wif: 0x9e
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bitcoinjs.bitcoin.networks.dogecointestnet = {
|
||||||
|
messagePrefix: '\x19Dogecoin Signed Message:\n',
|
||||||
|
bip32: {
|
||||||
|
public: 0x043587cf,
|
||||||
|
private: 0x04358394
|
||||||
|
},
|
||||||
|
pubKeyHash: 0x71,
|
||||||
|
scriptHash: 0xc4,
|
||||||
|
wif: 0xf1
|
||||||
|
};
|
||||||
|
|
||||||
bitcoinjs.bitcoin.networks.denarius = {
|
bitcoinjs.bitcoin.networks.denarius = {
|
||||||
messagePrefix: '\x19Denarius Signed Message:\n',
|
messagePrefix: '\x19Denarius Signed Message:\n',
|
||||||
bip32: {
|
bip32: {
|
||||||
@@ -878,6 +889,17 @@ bitcoinjs.bitcoin.networks.linx = {
|
|||||||
wif: 0xcb,
|
wif: 0xcb,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
bitcoinjs.bitcoin.networks.litecointestnet = {
|
||||||
|
messagePrefix: '\x18Litecoin Signed Message:\n',
|
||||||
|
bip32: {
|
||||||
|
public: 0x043587cf,
|
||||||
|
private: 0x04358394,
|
||||||
|
},
|
||||||
|
pubKeyHash: 0x6f,
|
||||||
|
scriptHash: 0xc4,
|
||||||
|
wif: 0xef,
|
||||||
|
};
|
||||||
bitcoinjs.bitcoin.networks.litecoincash = {
|
bitcoinjs.bitcoin.networks.litecoincash = {
|
||||||
messagePrefix: '\x18Litecoin Signed Message:\n',
|
messagePrefix: '\x18Litecoin Signed Message:\n',
|
||||||
bip32: {
|
bip32: {
|
||||||
@@ -1549,3 +1571,14 @@ bitcoinjs.bitcoin.networks.deeponion = {
|
|||||||
scriptHash: 0x4E,
|
scriptHash: 0x4E,
|
||||||
wif: 0x9F,
|
wif: 0x9F,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bitcoinjs.bitcoin.networks.monkey = {
|
||||||
|
messagePrefix: 'x18DarkNet Signed Message:\n',
|
||||||
|
bip32: {
|
||||||
|
public: 0x0488B21E,
|
||||||
|
private: 0x0488ADE4,
|
||||||
|
},
|
||||||
|
pubKeyHash: 0x7F,
|
||||||
|
scriptHash: 0xC4,
|
||||||
|
wif: 0x3F,
|
||||||
|
};
|
||||||
|
|||||||
@@ -1959,6 +1959,13 @@
|
|||||||
setHdCoin(3);
|
setHdCoin(3);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "DOGEt - Dogecoin Testnet",
|
||||||
|
onSelect: function() {
|
||||||
|
network = bitcoinjs.bitcoin.networks.dogecointestnet;
|
||||||
|
setHdCoin(1);
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "DXN - DEXON",
|
name: "DXN - DEXON",
|
||||||
onSelect: function() {
|
onSelect: function() {
|
||||||
@@ -2212,6 +2219,14 @@
|
|||||||
DOM.litecoinLtubContainer.removeClass("hidden");
|
DOM.litecoinLtubContainer.removeClass("hidden");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "LTCt - Litecoin Testnet",
|
||||||
|
onSelect: function() {
|
||||||
|
network = bitcoinjs.bitcoin.networks.litecointestnet;
|
||||||
|
setHdCoin(1);
|
||||||
|
DOM.litecoinLtubContainer.removeClass("hidden");
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "LTZ - LitecoinZ",
|
name: "LTZ - LitecoinZ",
|
||||||
onSelect: function() {
|
onSelect: function() {
|
||||||
@@ -2756,6 +2771,13 @@
|
|||||||
setHdCoin(121);
|
setHdCoin(121);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "MONK - Monkey Project",
|
||||||
|
` onSelect: function() {
|
||||||
|
network = bitcoinjs.bitcoin.networks.monkey;
|
||||||
|
setHdCoin(214);
|
||||||
|
},
|
||||||
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
var clients = [
|
var clients = [
|
||||||
|
|||||||
@@ -408,6 +408,13 @@ it('Allows selection of litecoin', function(done) {
|
|||||||
};
|
};
|
||||||
testNetwork(done, params);
|
testNetwork(done, params);
|
||||||
});
|
});
|
||||||
|
it('Allows selection of litecoin testnet', function(done) {
|
||||||
|
var params = {
|
||||||
|
selectText: "LTCt - Litecoin Testnet",
|
||||||
|
firstAddress: "mucaU5iiDaJDb69BHLeDv8JFfGiyg2nJKi",
|
||||||
|
};
|
||||||
|
testNetwork(done, params);
|
||||||
|
});
|
||||||
it('Allows selection of ripple', function(done) {
|
it('Allows selection of ripple', function(done) {
|
||||||
var params = {
|
var params = {
|
||||||
selectText: "XRP - Ripple",
|
selectText: "XRP - Ripple",
|
||||||
@@ -423,6 +430,13 @@ it('Allows selection of dogecoin', function(done) {
|
|||||||
};
|
};
|
||||||
testNetwork(done, params);
|
testNetwork(done, params);
|
||||||
});
|
});
|
||||||
|
it('Allows selection of dogecoin testnet', function(done) {
|
||||||
|
var params = {
|
||||||
|
selectText: "DOGEt - Dogecoin testnet",
|
||||||
|
firstAddress: "niHnSJKHdwDyDxRMLBJrtNqpvHEsAFWe6B",
|
||||||
|
};
|
||||||
|
testNetwork(done, params);
|
||||||
|
});
|
||||||
it('Allows selection of denarius', function(done) {
|
it('Allows selection of denarius', function(done) {
|
||||||
var params = {
|
var params = {
|
||||||
selectText: "DNR - Denarius",
|
selectText: "DNR - Denarius",
|
||||||
@@ -1462,6 +1476,13 @@ it('Allows selection of Ethersocial Network', function(done) {
|
|||||||
};
|
};
|
||||||
testNetwork(done, params);
|
testNetwork(done, params);
|
||||||
});
|
});
|
||||||
|
it('Allows selection of Monkey Project', function(done) {
|
||||||
|
var params = {
|
||||||
|
selectText: "MONK - Monkey Project",
|
||||||
|
firstAddress: "MnLrcnnUzKnf7TzufjRe5DLZqQJz18oYyu",
|
||||||
|
};
|
||||||
|
testNetwork(done, params);
|
||||||
|
});
|
||||||
|
|
||||||
// BIP39 seed is set from phrase
|
// BIP39 seed is set from phrase
|
||||||
it('Sets the bip39 seed from the prhase', function(done) {
|
it('Sets the bip39 seed from the prhase', function(done) {
|
||||||
|
|||||||
Reference in New Issue
Block a user