IERC7913.sol 674 B

123456789101112131415161718
  1. // SPDX-License-Identifier: MIT
  2. // OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC7913.sol)
  3. pragma solidity >=0.5.0;
  4. /**
  5. * @dev Signature verifier interface.
  6. */
  7. interface IERC7913SignatureVerifier {
  8. /**
  9. * @dev Verifies `signature` as a valid signature of `hash` by `key`.
  10. *
  11. * MUST return the bytes4 magic value IERC7913SignatureVerifier.verify.selector if the signature is valid.
  12. * SHOULD return 0xffffffff or revert if the signature is not valid.
  13. * SHOULD return 0xffffffff or revert if the key is empty
  14. */
  15. function verify(bytes calldata key, bytes32 hash, bytes calldata signature) external view returns (bytes4);
  16. }