IERC7913.sol 600 B

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