Merge pull request #291 from jestevez/master

Add LKRcoin (LKR)
This commit is contained in:
iancoleman
2019-01-15 08:55:56 +11:00
committed by GitHub
3 changed files with 27 additions and 0 deletions
+12
View File
@@ -252,6 +252,18 @@ bitcoinjs.bitcoin.networks.onixcoin = {
wif: 0x80 wif: 0x80
}; };
bitcoinjs.bitcoin.networks.lkrcoin = {
messagePrefix: '\x18LKRcoin Signed Message:\n',
bip32: {
public: 0x0488b21e,
private: 0x0488ade4,
},
pubKeyHash: 0x30,
scriptHash: 0x55,
wif: 0x80
};
bitcoinjs.bitcoin.networks.pivx = { bitcoinjs.bitcoin.networks.pivx = {
messagePrefix: 'unused', messagePrefix: 'unused',
bip32: { bip32: {
+8
View File
@@ -2127,6 +2127,14 @@
setHdCoin(114); setHdCoin(114);
}, },
}, },
{
name: "LKR - Lkrcoin",
segwitAvailable: false,
onSelect: function() {
network = bitcoinjs.bitcoin.networks.lkrcoin;
setHdCoin(557);
},
},
{ {
name: "LTC - Litecoin", name: "LTC - Litecoin",
onSelect: function() { onSelect: function() {
+7
View File
@@ -521,6 +521,13 @@ it('Allows selection of onixcoin', function(done) {
}; };
testNetwork(done, params); testNetwork(done, params);
}); });
it('Allows selection of lkrcoin', function(done) {
var params = {
selectText: "LKR - Lkrcoin",
firstAddress: "LfbT296e7AEEnn4bYDbL535Nd8P9g98CdJ",
};
testNetwork(done, params);
});
it('Allows selection of peercoin', function(done) { it('Allows selection of peercoin', function(done) {
var params = { var params = {
selectText: "PPC - Peercoin", selectText: "PPC - Peercoin",