Skip to content

Commit

Permalink
Merge pull request #3 from OneKeyHQ/feat/cosmosPriToHex
Browse files Browse the repository at this point in the history
feat: convert cosmos pri to hex
  • Loading branch information
ByteZhang1024 authored Jan 5, 2024
2 parents 8d64693 + 1d41a13 commit 8fe114b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@
const hrp = "cosmos";
address = CosmosBufferToAddress(keyPair.getPublicKeyBuffer(), hrp);
pubkey = CosmosBufferToPublic(keyPair.getPublicKeyBuffer(), hrp);
privkey = keyPair.d.toBuffer().toString("base64");
privkey = keyPair.d.toBuffer().toString("hex");
}

if (networks[DOM.network.val()].name == "RUNE - THORChain") {
Expand Down

0 comments on commit 8fe114b

Please sign in to comment.