Recovers a public key from a signature and message.
The message that was signed.
The signature.
The recovered public key as a 0x prefixed string.
0x
import { xpRecoverPublicKey } from "@avalanche-sdk/client/accounts";const publicKey = xpRecoverPublicKey("0xab....", "0xab....");console.log(publicKey); Copy
import { xpRecoverPublicKey } from "@avalanche-sdk/client/accounts";const publicKey = xpRecoverPublicKey("0xab....", "0xab....");console.log(publicKey);
Recovers a public key from a signature and message.