mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-06 02:43:49 +00:00
Merge pull request #339 from NewCapital/master
Adding support for TWINS and FIX coins
This commit is contained in:
@@ -327,6 +327,28 @@ bitcoinjs.bitcoin.networks.pivxtestnet = {
|
||||
wif: 0xef
|
||||
};
|
||||
|
||||
bitcoinjs.bitcoin.networks.fix = {
|
||||
messagePrefix: 'unused',
|
||||
bip32: {
|
||||
public: 0x022d2533,
|
||||
private: 0x0221312b
|
||||
},
|
||||
pubKeyHash: 0x23,
|
||||
scriptHash: 0x5F,
|
||||
wif: 0x3C
|
||||
};
|
||||
|
||||
bitcoinjs.bitcoin.networks.fixtestnet = {
|
||||
messagePrefix: 'unused',
|
||||
bip32: {
|
||||
public: 0x3a8061a0,
|
||||
private: 0x3a805837
|
||||
},
|
||||
pubKeyHash: 0x4c,
|
||||
scriptHash: 0x89,
|
||||
wif: 0xED
|
||||
};
|
||||
|
||||
bitcoinjs.bitcoin.networks.fujicoin = {
|
||||
messagePrefix: '\x19FujiCoin Signed Message:\n',
|
||||
bip32: {
|
||||
@@ -1253,6 +1275,28 @@ bitcoinjs.bitcoin.networks.toa = {
|
||||
wif: 0xc1,
|
||||
};
|
||||
|
||||
bitcoinjs.bitcoin.networks.twins = {
|
||||
messagePrefix: 'unused',
|
||||
bip32: {
|
||||
public: 0x022d2533,
|
||||
private: 0x0221312b
|
||||
},
|
||||
pubKeyHash: 0x49,
|
||||
scriptHash: 0x53,
|
||||
wif: 0x42
|
||||
};
|
||||
|
||||
bitcoinjs.bitcoin.networks.twinstestnet = {
|
||||
messagePrefix: 'unused',
|
||||
bip32: {
|
||||
public: 0x3a8061a0,
|
||||
private: 0x3a805837
|
||||
},
|
||||
pubKeyHash: 0x4c,
|
||||
scriptHash: 0x89,
|
||||
wif: 0xED
|
||||
};
|
||||
|
||||
bitcoinjs.bitcoin.networks.ultimatesecurecash = {
|
||||
messagePrefix: '\x18UltimateSecureCash Signed Message:\n',
|
||||
bip32: {
|
||||
|
||||
@@ -1003,7 +1003,7 @@
|
||||
pubkey = eosUtil.bufferToPublic(keyPair.getPublicKeyBuffer());
|
||||
privkey = eosUtil.bufferToPrivate(keyPair.d.toBuffer(32));
|
||||
}
|
||||
|
||||
|
||||
addAddressToList(indexText, address, pubkey, privkey);
|
||||
if (isLast) {
|
||||
hidePending();
|
||||
@@ -2087,6 +2087,20 @@
|
||||
setHdCoin(40);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "FIX - FIX",
|
||||
onSelect: function() {
|
||||
network = bitcoinjs.bitcoin.networks.fix;
|
||||
setHdCoin(336);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "FIX - FIX Testnet",
|
||||
onSelect: function() {
|
||||
network = bitcoinjs.bitcoin.networks.fixtestnet;
|
||||
setHdCoin(1);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "FJC - Fujicoin",
|
||||
onSelect: function() {
|
||||
@@ -2649,6 +2663,20 @@
|
||||
setHdCoin(159);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "TWINS - TWINS",
|
||||
onSelect: function() {
|
||||
network = bitcoinjs.bitcoin.networks.twins;
|
||||
setHdCoin(970);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "TWINS - TWINS Testnet",
|
||||
onSelect: function() {
|
||||
network = bitcoinjs.bitcoin.networks.twinstestnet;
|
||||
setHdCoin(1);
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "USC - Ultimatesecurecash",
|
||||
onSelect: function() {
|
||||
|
||||
@@ -640,6 +640,20 @@ it('Allows selection of maza', function(done) {
|
||||
};
|
||||
testNetwork(done, params);
|
||||
});
|
||||
it('Allows selection of FIX', function(done) {
|
||||
var params = {
|
||||
selectText: "FIX - FIX",
|
||||
firstAddress: "FS5MEU8fs5dUvsaSCSusV8RQtC8j2h3JEh",
|
||||
};
|
||||
testNetwork(done, params);
|
||||
});
|
||||
it('Allows selection of FIX testnet', function(done) {
|
||||
var params = {
|
||||
selectText: "FIX - FIX Testnet",
|
||||
firstAddress: "XpnU1HHdNG5YxvG9Rez4wjmidchxqnZaNa",
|
||||
};
|
||||
testNetwork(done, params);
|
||||
});
|
||||
it('Allows selection of fujicoin', function(done) {
|
||||
var params = {
|
||||
selectText: "FJC - Fujicoin",
|
||||
@@ -1242,6 +1256,20 @@ it('Allows selection of Toa', function(done) {
|
||||
};
|
||||
testNetwork(done, params);
|
||||
});
|
||||
it('Allows selection of TWINS', function(done) {
|
||||
var params = {
|
||||
selectText: "TWINS - TWINS",
|
||||
firstAddress: "WPpJnfLLubNmF7HLNxg8d8zH5haxn4wri8",
|
||||
};
|
||||
testNetwork(done, params);
|
||||
});
|
||||
it('Allows selection of TWINS testnet', function(done) {
|
||||
var params = {
|
||||
selectText: "TWINS - TWINS Testnet",
|
||||
firstAddress: "XpnU1HHdNG5YxvG9Rez4wjmidchxqnZaNa",
|
||||
};
|
||||
testNetwork(done, params);
|
||||
});
|
||||
it('Allows selection of Ultimatesecurecash', function(done) {
|
||||
var params = {
|
||||
selectText: "USC - Ultimatesecurecash",
|
||||
|
||||
Reference in New Issue
Block a user