Merge pull request #251 from skironDotNet/artaxcoin

Added Artax as HD 219 ...
This commit is contained in:
iancoleman
2018-09-15 14:40:17 +10:00
committed by GitHub
3 changed files with 25 additions and 0 deletions

View File

@@ -1342,3 +1342,14 @@ bitcoinjs.bitcoin.networks.exchangecoin = {
scriptHash: 0x34AF,
wif: 0x80,
};
bitcoinjs.bitcoin.networks.artax = {
messagePrefix: '\x18Artax Signed Message:\n',
bip32: {
public: 0x0488B21E,
private: 0x0488ADE4,
},
pubKeyHash: 0x17,
scriptHash: 0x1CBD,
wif: 0x97,
};

View File

@@ -2488,6 +2488,13 @@
network = bitcoinjs.bitcoin.networks.wincoin;
setHdCoin(181);
},
},
{
name: "XAX - Artax",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.artax;
setHdCoin(219);
},
},
{
name: "XBC - Bitcoinplus",

View File

@@ -1297,6 +1297,13 @@ it('Allows selection of ExchangeCoin', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of Artax', function(done) {
var params = {
selectText: "XAX - Artax",
firstAddress: "AYxaQPY7XLidG31V7F3yNzwxPYpYzRqG4q",
};
testNetwork(done, params);
});
// BIP39 seed is set from phrase