API reference v1.0
Introduction
periphery
tokenomics
IERC1271

IERC1271

IERC1271

Interface for verifying contract-based account signatures Interface that verifies provided signature for the data Developer note: Interface defined by EIP-1271

Functions

isValidSignature

isValidSignature(bytes32,bytes) view external

Returns whether the provided signature is valid for the provided data

NameTypeDescription
hashbytes32Hash of the data to be signed
signaturebytesSignature byte array associated with _data

Returns:

NameTypeDescription
magicValuebytes4

IERC1271

Interface for verifying contract-based account signatures Interface that verifies provided signature for the data Developer note: Interface defined by EIP-1271

Functions

isValidSignature

isValidSignature(bytes32,bytes) view external

Returns whether the provided signature is valid for the provided data

NameTypeDescription
hashbytes32Hash of the data to be signed
signaturebytesSignature byte array associated with _data

Returns:

NameTypeDescription
magicValuebytes4