Add ExchangeCoin

This commit is contained in:
harzo
2018-09-05 15:03:40 +02:00
parent 341700110b
commit a44c45e3c0
3 changed files with 25 additions and 0 deletions

View File

@@ -1331,3 +1331,14 @@ bitcoinjs.bitcoin.networks.energi = {
scriptHash: 0x35,
wif: 0x6a,
};
bitcoinjs.bitcoin.networks.exchangecoin = {
messagePrefix: 'ExchangeCoin Signed Message:\n',
bip32: {
public: 0x0488B21E,
private: 0x0488ADE4,
},
pubKeyHash: 0x21B9,
scriptHash: 0x34AF,
wif: 0x80,
};

View File

@@ -1935,6 +1935,13 @@
setHdCoin(190);
},
},
{
name: "EXCC - ExchangeCoin",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.exchangecoin;
setHdCoin(0);
},
},
{
name: "EXP - Expanse",
segwitAvailable: false,

View File

@@ -1290,6 +1290,13 @@ it('Allows selection of HUSH', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of ExchangeCoin', function(done) {
var params = {
selectText: "EXCC - ExchangeCoin",
firstAddress: "22txYKpFN5fwGwdSs2UBf7ywewbLM92YqK7E",
};
testNetwork(done, params);
});
// BIP39 seed is set from phrase