UNPKG

eth-signature-verifier

Version:

Minimal Ethereum signature verifier supporting EIP-712, EIP-191, and eth_sign. No ethers.js or web3.js.

5 lines (4 loc) 671 B
import type { TypedDataDomain, TypedDataTypes, EthersCompatibleDomain, EthersCompatibleTypes, ViemCompatibleDomain, ViemCompatibleTypes } from './types.js'; export declare function verifyMessage(address: string, message: string, signature: string): boolean; export declare function verifyTypedData(address: string, signature: string, domain: TypedDataDomain | EthersCompatibleDomain | ViemCompatibleDomain, types: TypedDataTypes | EthersCompatibleTypes | ViemCompatibleTypes, value: Record<string, any>): boolean; export type { TypedDataDomain, TypedDataTypes, EthersCompatibleDomain, EthersCompatibleTypes, ViemCompatibleDomain, ViemCompatibleTypes } from './types.js';