Expand description
Module containing a contract’s types and functions.
interface ISignatureVerifier {
function recover(bytes32 hash, bytes calldata signature) external view returns (address signer);
function verify(address signer, bytes32 hash, bytes calldata signature) external view returns (bool);
error InvalidFormat();
error InvalidSignature();
}Modules§
- abi
- Contains dynamic ABI definitions for this contract.
Structs§
- ISignature
Verifier Instance - A
ISignatureVerifierinstance. - Invalid
Format - Custom error with signature
InvalidFormat()and selector0x257aa23b. - Invalid
Signature - Custom error with signature
InvalidSignature()and selector0x8baa579f. - recover
Call - @notice Recovers the signer of a Tempo signature (secp256k1, P256, WebAuthn).
@param hash The message hash that was signed
@param signature The encoded signature (see Tempo Transaction spec for formats)
@return Address of the signer if valid, reverts otherwise
Function with signature
recover(bytes32,bytes)and selector0x19045a25. - recover
Return - @notice Recovers the signer of a Tempo signature (secp256k1, P256, WebAuthn).
@param hash The message hash that was signed
@param signature The encoded signature (see Tempo Transaction spec for formats)
@return Address of the signer if valid, reverts otherwise
Container type for the return parameters of the
recover(bytes32,bytes)function. - verify
Call - @notice Verifies a signer against a Tempo signature (secp256k1, P256, WebAuthn).
@param signer The input address verified against the recovered signer
@param hash The message hash that was signed
@param signature The encoded signature (see Tempo Transaction spec for formats)
@return True if the input address signed, false otherwise. Reverts on invalid signatures.
Function with signature
verify(address,bytes32,bytes)and selector0x1a86b550. - verify
Return - @notice Verifies a signer against a Tempo signature (secp256k1, P256, WebAuthn).
@param signer The input address verified against the recovered signer
@param hash The message hash that was signed
@param signature The encoded signature (see Tempo Transaction spec for formats)
@return True if the input address signed, false otherwise. Reverts on invalid signatures.
Container type for the return parameters of the
verify(address,bytes32,bytes)function.
Enums§
- ISignature
Verifier Calls - Container for all the
ISignatureVerifierfunction calls. - ISignature
Verifier Errors - Container for all the
ISignatureVerifiercustom errors.
Functions§
- new
- Creates a new wrapper around an on-chain
ISignatureVerifiercontract instance.