mirror of
https://github.com/OneKeyHQ/bip39.git
synced 2026-04-18 08:22:16 +00:00
Added Artax as HD 219 from proposed https://github.com/satoshilabs/slips/pull/363
This commit is contained in:
@@ -1342,3 +1342,14 @@ bitcoinjs.bitcoin.networks.exchangecoin = {
|
|||||||
scriptHash: 0x34AF,
|
scriptHash: 0x34AF,
|
||||||
wif: 0x80,
|
wif: 0x80,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bitcoinjs.bitcoin.networks.artax = {
|
||||||
|
messagePrefix: '\x18Artax Signed Message:\n',
|
||||||
|
bip32: {
|
||||||
|
public: 0x0488B21E,
|
||||||
|
private: 0x0488ADE4,
|
||||||
|
},
|
||||||
|
pubKeyHash: 0x17,
|
||||||
|
scriptHash: 0x1CBD,
|
||||||
|
wif: 0x97,
|
||||||
|
};
|
||||||
|
|||||||
@@ -2488,6 +2488,13 @@
|
|||||||
network = bitcoinjs.bitcoin.networks.wincoin;
|
network = bitcoinjs.bitcoin.networks.wincoin;
|
||||||
setHdCoin(181);
|
setHdCoin(181);
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "XAX - Artax",
|
||||||
|
onSelect: function() {
|
||||||
|
network = bitcoinjs.bitcoin.networks.artax;
|
||||||
|
setHdCoin(219);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "XBC - Bitcoinplus",
|
name: "XBC - Bitcoinplus",
|
||||||
|
|||||||
@@ -1297,6 +1297,13 @@ it('Allows selection of ExchangeCoin', function(done) {
|
|||||||
};
|
};
|
||||||
testNetwork(done, params);
|
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
|
// BIP39 seed is set from phrase
|
||||||
|
|||||||
Reference in New Issue
Block a user