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

View File

@@ -252,6 +252,18 @@ bitcoinjs.bitcoin.networks.onixcoin = {
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 = {
messagePrefix: 'unused',
bip32: {

View File

@@ -2127,6 +2127,14 @@
setHdCoin(114);
},
},
{
name: "LKR - Lkrcoin",
segwitAvailable: false,
onSelect: function() {
network = bitcoinjs.bitcoin.networks.lkrcoin;
setHdCoin(557);
},
},
{
name: "LTC - Litecoin",
onSelect: function() {

View File

@@ -521,6 +521,13 @@ it('Allows selection of onixcoin', function(done) {
};
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) {
var params = {
selectText: "PPC - Peercoin",