IERC1271.sol 671 B

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