Skip to main content

Module ISignatureVerifier

Module ISignatureVerifier 

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);
    function verifyKeychain(address account, bytes32 hash, bytes calldata signature) external view returns (bool);
    function verifyKeychainAdmin(address account, 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.
verifyKeychainAdminCall
@notice Verifies whether a keychain signature was produced by a root or active admin key. @param account The expected embedded root account @param hash The message hash that was signed @param signature The encoded keychain signature @dev Does not compare the inner signature type against the stored key type. @return True if the recovered key is account or an active admin key on account. Function with signature verifyKeychainAdmin(address,bytes32,bytes) and selector 0x5f6fc5b7.
verifyKeychainAdminReturn
@notice Verifies whether a keychain signature was produced by a root or active admin key. @param account The expected embedded root account @param hash The message hash that was signed @param signature The encoded keychain signature @dev Does not compare the inner signature type against the stored key type. @return True if the recovered key is account or an active admin key on account. Container type for the return parameters of the verifyKeychainAdmin(address,bytes32,bytes) function.
verifyKeychainCall
@notice Verifies whether a keychain signature was produced by an active key. @param account The expected embedded root account @param hash The message hash that was signed @param signature The encoded keychain signature @dev Does not compare the inner signature type against the stored key type. @return True if the keychain access key is active on account. Function with signature verifyKeychain(address,bytes32,bytes) and selector 0x6c0c731e.
verifyKeychainReturn
@notice Verifies whether a keychain signature was produced by an active key. @param account The expected embedded root account @param hash The message hash that was signed @param signature The encoded keychain signature @dev Does not compare the inner signature type against the stored key type. @return True if the keychain access key is active on account. Container type for the return parameters of the verifyKeychain(address,bytes32,bytes) function.
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.