Merge pull request #249 from harzo/task/add-exchangecoin

Add ExchangeCoin
This commit is contained in:
iancoleman
2018-09-06 12:08:44 +10:00
committed by GitHub
3 changed files with 25 additions and 0 deletions
+11
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,
};
+7
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,
+7
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