From 1d41a13a2a625b772285fe0540e33c2fd05d6588 Mon Sep 17 00:00:00 2001 From: ByteZhang Date: Thu, 4 Jan 2024 19:59:45 +0800 Subject: [PATCH] feat: convert cosmos pri to hex --- src/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/index.js b/src/js/index.js index b29a2f3..21574ea 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -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") {