pub fn verify<M, MSol>(
domain: &Eip712Domain,
signed_message: &SignedMessage<M>,
expected_address: &Address,
) -> Result<(), VerificationError>where
M: ToSolStruct<MSol>,
MSol: SolStruct,
Available on crate feature
signed-message
only.Expand description
Verify the signer’s address of an EIP-712 signed message
Returns Ok(())
if the signer’s address retrieved from the signature matches the expected
address. Otherwise, returns a VerificationError
with details about the mismatch.