Skip to main content

Module ISignatureVerifier

Module ISignatureVerifier 

Source
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§

ISignatureVerifierInstance
A ISignatureVerifier instance.
InvalidFormat
Custom error with signature InvalidFormat() and selector 0x257aa23b.
InvalidSignature
Custom error with signature InvalidSignature() and selector 0x8baa579f.
recoverCall
@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 selector 0x19045a25.
recoverReturn
@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.
verifyCall
@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 selector 0x1a86b550.
verifyReturn
@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§

ISignatureVerifierCalls
Container for all the ISignatureVerifier function calls.
ISignatureVerifierErrors
Container for all the ISignatureVerifier custom errors.

Functions§

new
Creates a new wrapper around an on-chain ISignatureVerifier contract instance.