IERC1271.sol 654 B

1234567891011121314151617
  1. // SPDX-License-Identifier: MIT
  2. // OpenZeppelin Contracts (last updated v5.3.0) (interfaces/IERC1271.sol)
  3. pragma solidity ^0.8.20;
  4. /**
  5. * @dev Interface of the ERC-1271 standard signature validation method for
  6. * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
  7. */
  8. interface IERC1271 {
  9. /**
  10. * @dev Should return whether the signature provided is valid for the provided data
  11. * @param hash Hash of the data to be signed
  12. * @param signature Signature byte array associated with `hash`
  13. */
  14. function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
  15. }