IERC1271.sol 565 B

12345678910111213141516
  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. interface IERC1271 {
  8. /**
  9. * @dev Should return whether the signature provided is valid for the provided data
  10. * @param hash Hash of the data to be signed
  11. * @param signature Signature byte array associated with _data
  12. */
  13. function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
  14. }