Skip to content

Commit

Permalink
Merge pull request iancoleman#142 from ca333/master
Browse files Browse the repository at this point in the history
[ADD] KMD - Komodo
  • Loading branch information
iancoleman committed Dec 13, 2017
2 parents 26dd39f + aab3645 commit ab1bd64
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/js/bitcoinjs-extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,3 +294,14 @@ bitcoinjs.bitcoin.networks.litecoinXprv = {
scriptHash: 0x32,
wif: 0xb0
};

bitcoinjs.bitcoin.networks.komodo = {
messagePrefix: '\x18Komodo Signed Message:\n',
bip32: {
public: 0x0488B21E,
private: 0x0488ADE4
},
pubKeyHash: 0x3c,
scriptHash: 0x55,
wif: 0xbc
};
8 changes: 8 additions & 0 deletions src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,14 @@
setHdCoin(26);
},
},
{
name: "KMD - Komodo",
bip49available: false,
onSelect: function() {
network = bitcoinjs.bitcoin.networks.komodo;
setHdCoin(141);
},
},
{
name: "LTC - Litecoin",
segwitAvailable: true,
Expand Down
7 changes: 7 additions & 0 deletions tests/spec/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,13 @@ it('Allows selection of game', function(done) {
};
testNetwork(done, params);
});
it('Allows selection of game', function(done) {
var params = {
selectText: "KMD - Komodo",
firstAddress: "RJL777dmaB3PYqHEJGMJKWWkLPdu1ypGi4",
};
testNetwork(done, params);
});
it('Allows selection of namecoin', function(done) {
var params = {
selectText: "NMC - Namecoin",
Expand Down

0 comments on commit ab1bd64

Please sign in to comment.