Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IERC1271

Interface of the ERC-1271 standard signature validation method for contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].

Functions

isValidSignature

Should return whether the signature provided is valid for the provided data

function isValidSignature(bytes32 hash, bytes calldata signature) external view returns (bytes4 magicValue);

Parameters

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