function verifyTypedData(
   domain, 
   types, 
   value, 
   signature): string

Compute the address used to sign the typed data for the signature.

Parameters

ParameterTypeDescription
domainTypedDataDomainThe domain of the typed data.
typesRecord<string, TypedDataField[]>The types of the typed data.
valueRecord<string, any>The value of the typed data.
signatureSignatureLikeThe signature to verify.

Returns

string

The address that signed the typed data.

Source

hash/typed-data.ts:710