IERC712

Git Source

Author: M^0 Labs

The interface as defined by EIP-712: https://eips.ethereum.org/EIPS/eip-712

Functions

DOMAIN_SEPARATOR

Returns the EIP712 domain separator used in the encoding of a signed digest.

function DOMAIN_SEPARATOR() external view returns (bytes32);

Errors

InvalidSignature

Revert message when an invalid signature is detected.

error InvalidSignature();

InvalidSignatureLength

Revert message when a signature with invalid length is detected.

error InvalidSignatureLength();

InvalidSignatureS

Revert message when the S portion of a signature is invalid.

error InvalidSignatureS();

InvalidSignatureV

Revert message when the V portion of a signature is invalid.

error InvalidSignatureV();

SignatureExpired

Revert message when a signature is being used beyond its deadline (i.e. expiry).

error SignatureExpired(uint256 deadline, uint256 timestamp);

Parameters

NameTypeDescription

deadline

uint256

The deadline of the signature.

timestamp

uint256

The current timestamp.

SignerMismatch

Revert message when a recovered signer does not match the account being purported to have signed.

error SignerMismatch();

Copyright 2024 M^0 Foundation