For the complete documentation index, see llms.txt. This page is also available as Markdown.

SignatureVerification

Git Source

Library for verifying signatures using ECDSA and ERC-1271

Copied from https://github.com/Uniswap/permit2/blob/cc56ad0f3439c502c246fc5cfcc3db92bb8b7219/src/libraries/SignatureVerification.sol

State Variables

UPPER_BIT_MASK

bytes32 constant UPPER_BIT_MASK = (0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)

Functions

verify

function verify(bytes calldata signature, bytes32 hash, address claimedSigner) internal view;

Errors

InvalidSignatureLength

Thrown when the passed in signature is not a valid length

error InvalidSignatureLength();

InvalidSignature

Thrown when the recovered signer is equal to the zero address

InvalidSigner

Thrown when the recovered signer does not equal the claimedSigner

InvalidContractSignature

Thrown when the recovered contract signature is incorrect

Last updated

Was this helpful?