Skip to content
Lattice

IERC7579Validator

Git Source

Inherits: IERC7579Module

Validator module (type 1): authorizes user operations / ERC-1271 signatures on the account's behalf. Selected per-op by the validator address encoded in the top 20 bytes of userOp.nonce.

Functions

validateUserOp

function validateUserOp(PackedUserOperation calldata userOp, bytes32 userOpHash) external returns (uint256);

Parameters

NameTypeDescription
userOpPackedUserOperation
userOpHashbytes32

Returns

NameTypeDescription
<none>uint256

isValidSignatureWithSender

function isValidSignatureWithSender(address sender, bytes32 hash, bytes calldata signature)
        external
        view
        returns (bytes4);

Parameters

NameTypeDescription
senderaddress
hashbytes32
signaturebytes

Returns

NameTypeDescription
<none>bytes4