Support BSV, RPD, MONKEY, ARYA

This commit is contained in:
Pavlos Tzegiannakis
2019-09-02 09:58:09 +03:00
parent e440d504fb
commit 31264e8bea
3 changed files with 102 additions and 0 deletions

View File

@@ -1638,3 +1638,48 @@ bitcoinjs.bitcoin.networks.wagerr = {
scriptHash: 0x3f,
wif: 0xc7
};
bitcoinjs.bitcoin.networks.bitcoinsv = {
messagePrefix: 'unused',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4
},
pubKeyHash: 0x00,
scriptHash: 0x05,
wif: 0x80
};
bitcoinjs.bitcoin.networks.monkeyproject = {
messagePrefix: 'Monkey Signed Message:\n',
bip32: {
public: 0x0488b21e,
private: 0x0488dde4
},
pubKeyHash: 0x33,
scriptHash: 0x1c,
wif: 0x37
};
bitcoinjs.bitcoin.networks.rapids = {
messagePrefix: 'DarkNet Signed Message:\n',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4
},
pubKeyHash: 0x3d,
scriptHash: 0x06,
wif: 0x2e
};
bitcoinjs.bitcoin.networks.aryacoin = {
messagePrefix: '\x18Aryacoin Signed Message:\n',
bech32: 'arya',
bip32: {
public: 0x0488B21E,
private: 0x0488ADE4,
},
pubKeyHash: 0x17,
scriptHash: 0x6f,
wif: 0x97
};

View File

@@ -1696,6 +1696,13 @@
setHdCoin(161);
},
},
{
name: "ARYA - Aryacoin",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.aryacoin;
setHdCoin(357);
},
},
{
name: "AUR - Auroracoin",
onSelect: function() {
@@ -1829,6 +1836,13 @@
setHdCoin(183);
},
},
{
name: "BSV - BitcoinSV",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.bitcoinsv;
setHdCoin(236);
},
},
{
name: "BTCZ - Bitcoinz",
onSelect: function() {
@@ -2337,6 +2351,13 @@
setHdCoin(22);
},
},
{
name: "MONK - Monkey Project",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.monkeyproject,
setHdCoin(214);
},
},
{
name: "MUSIC - Musicoin",
segwitAvailable: false,
@@ -2543,6 +2564,13 @@
setHdCoin(122);
},
},
{
name: "RPD - Rapids",
onSelect: function() {
network = bitcoinjs.bitcoin.networks.rapids;
setHdCoin(320);
},
},
{
name: "RVN - Ravencoin",
onSelect: function() {

View File

@@ -732,6 +732,13 @@ it('Allows selection of Asiacoin', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of Aryacoin', function(done) {
var params = {
selectText: "ARYA - Aryacoin",
firstAddress: "Abr6gX25KaU9BpwD34UfsL3A4n89NvYYSf",
};
testNetwork(done, params);
});
it('Allows selection of Auroracoin', function(done) {
var params = {
selectText: "AUR - Auroracoin",
@@ -774,6 +781,13 @@ it('Allows selection of Bitcoin Private', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of Bitcoin SV', function(done) {
var params = {
selectText: "BSV - BitcoinSV",
firstAddress: "1N4mgtE5yxifch9jWs7Sds6oVqxdy2t576",
};
testNetwork(done, params);
});
it('Allows selection of Bitcoinz', function(done) {
var params = {
selectText: "BTCZ - Bitcoinz",
@@ -1180,6 +1194,13 @@ it('Allows selection of Putincoin', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of Rapids', function(done) {
var params = {
selectText: "RPD - Rapids",
firstAddress: "Ri8XxUdZaXS5LqxmFJcFEjFinkaMbmhSUp",
};
testNetwork(done, params);
});
it('Allows selection of Ravencoin', function(done) {
var params = {
selectText: "RVN - Ravencoin",
@@ -1411,6 +1432,14 @@ it('Allows selection of MIX', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of Monkey Project', function(done) {
var params = {
selectText: "MONK - Monkey Project",
firstAddress: "MnLrcnnUzKnf7TzufjRe5DLZqQJz18oYyu",
};
testNetwork(done, params);
});
it('Allows selection of Musicoin', function(done) {
var params = {
selectText: "MUSIC - Musicoin",