UNPKG

eip-712

Version:

Tiny library with utility functions that can help with signing and verifying EIP-712 based messages

16 lines (15 loc) 403 B
/** * Validates that `data` matches the EIP-712 JSON schema. */ export declare const validateTypedData: (data: unknown, options?: Partial<{ domain: string; verifyDomain: boolean; }> | undefined) => data is { domain: Record<string, unknown>; types: Record<string, { name: string; type: string; }[]>; primaryType: string; message: Record<string, unknown>; };