IERC1271.sol 607 B

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