Add Argoneum (v1.4.1 or above)

This commit is contained in:
Oleg Semyonov
2020-04-18 14:52:13 +03:00
parent 54600393af
commit 46054e445e
4 changed files with 30 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
* Add Argoneum
# 0.4.2
* Fix ethereum private key format

View File

@@ -1751,3 +1751,14 @@ libs.bitcoin.networks.regtest = {
scriptHash: 0xc4,
wif: 0xef,
};
libs.bitcoin.networks.argoneum = {
messagePrefix: 'unused',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4
},
pubKeyHash: 0x32,
scriptHash: 0x61,
wif: 0xbf
};

View File

@@ -2030,6 +2030,13 @@
setHdCoin(161);
},
},
{
name: "AGM - Argoneum",
onSelect: function() {
network = libs.bitcoin.networks.argoneum;
setHdCoin(421);
},
},
{
name: "ARYA - Aryacoin",
onSelect: function() {

View File

@@ -2216,6 +2216,16 @@ it('Allows selection of tRBTC - RSK Testnet', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of Argoneum', function(done) {
var params = {
selectText: "AGM - Argoneum",
phrase: "abandon abandon ability",
firstAddress: "MWgLPvJkaJwH6hrXFs1MimAC4FwC1kYRhe",
firstPubKey: "0348e5252045fee1d3b1e5bce25dbc16284d5b6c3bfff9c305d4ffa6078c16f3f8",
firstPrivKey: "VJXpuMEFnK8USLyo5tgF7M4cBXU44U8MUor1KRTQ6t9DVno9AAgg",
};
testNetwork(done, params);
});
// BIP39 seed is set from phrase
it('Sets the bip39 seed from the prhase', function(done) {