feat: convert cosmos pri to hex

This commit is contained in:
ByteZhang
2024-01-04 19:59:45 +08:00
parent 8d64693dd5
commit 1d41a13a2a

View File

@@ -1432,7 +1432,7 @@
const hrp = "cosmos"; const hrp = "cosmos";
address = CosmosBufferToAddress(keyPair.getPublicKeyBuffer(), hrp); address = CosmosBufferToAddress(keyPair.getPublicKeyBuffer(), hrp);
pubkey = CosmosBufferToPublic(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") { if (networks[DOM.network.val()].name == "RUNE - THORChain") {