Add Cosmos Hub (ATOM) support

Closes #452, thanks @conr2d
This commit is contained in:
Ian Coleman
2021-02-11 02:13:23 +00:00
parent f7f579f5f5
commit d9ad938b52
6 changed files with 42 additions and 0 deletions
+13
View File
@@ -1419,6 +1419,12 @@
privkey = FIObufferToPrivate(keyPair.d.toBuffer(32));
}
if (networks[DOM.network.val()].name == "ATOM - Cosmos Hub") {
address = CosmosBufferToAddress(keyPair.getPublicKeyBuffer());
pubkey = CosmosBufferToPublic(keyPair.getPublicKeyBuffer());
privkey = keyPair.d.toBuffer().toString("base64");
}
//Groestlcoin Addresses are different
if(isGRS()) {
@@ -2234,6 +2240,13 @@
setHdCoin(357);
},
},
{
name: "ATOM - Cosmos Hub",
onSelect: function() {
network = libs.bitcoin.networks.bitcoin;
setHdCoin(118);
},
},
{
name: "AUR - Auroracoin",
onSelect: function() {