UNPKG

eip-712

Version:

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

9 lines 328 B
import { boolean, create, defaulted, object, string } from 'superstruct'; export const OPTIONS_TYPE = object({ domain: defaulted(string(), 'EIP712Domain'), verifyDomain: defaulted(boolean(), true) }); export const getOptions = options => { return create(options ?? {}, OPTIONS_TYPE); }; //# sourceMappingURL=options.js.map