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§
- 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
Keychain Admin Call - @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 selector0x5f6fc5b7. - verify
Keychain Admin Return - @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. - verify
Keychain Call - @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 selector0x6c0c731e. - verify
Keychain Return - @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. - 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.