UNPKG

viem

Version:

TypeScript Interface for Ethereum

15 lines 477 B
import { hashTypedData } from './hashTypedData.js'; import { recoverAddress, } from './recoverAddress.js'; export async function recoverTypedDataAddress(parameters) { const { domain, message, primaryType, signature, types } = parameters; return recoverAddress({ hash: hashTypedData({ domain, message, primaryType, types, }), signature, }); } //# sourceMappingURL=recoverTypedDataAddress.js.map