Adding FIX coin support

This commit is contained in:
yurykk
2019-06-27 12:15:11 +03:00
parent 82e3938afe
commit 7d4e4cbe26
3 changed files with 50 additions and 0 deletions

View File

@@ -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: {

View File

@@ -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() {

View File

@@ -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",