UNPKG

@avalanche-sdk/client

Version:

A TypeScript SDK for interacting with the Avalanche network through JSON-RPC APIs. This SDK provides a comprehensive set of tools to interact with all Avalanche chains (P-Chain, X-Chain, C-Chain) and various APIs, including wallet functionality for transa

17 lines 550 B
/** * Recovers a public key from a signature and message. * * @param message - The message that was signed. * @param signature - The signature. * @returns The recovered public key as a `0x` prefixed string. * * @example * ```ts * import { xpRecoverPublicKey } from "@avalanche-sdk/client/accounts"; * * const publicKey = xpRecoverPublicKey("0xab....", "0xab...."); * console.log(publicKey); * ``` */ export declare function xpRecoverPublicKey(message: string, signature: string): string; //# sourceMappingURL=xpRecoverPublicKey.d.ts.map