mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-06 02:43:49 +00:00
Adding FIX coin support
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: {
|
||||
|
||||
@@ -2074,6 +2074,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() {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user