IERC6900ValidationModule
Inherits: IERC6900Module
Validation module: authorizes user operations, runtime calls, and ERC-1271 signatures per entityId.
Functions
validateUserOp
function validateUserOp(uint32 entityId, PackedUserOperation calldata userOp, bytes32 userOpHash)
external
returns (uint256);Parameters
| Name | Type | Description |
|---|---|---|
| entityId | uint32 | |
| userOp | PackedUserOperation | |
| userOpHash | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 | Packed validation data: validAfter (6 bytes) ‖ validUntil (6 bytes) ‖ authorizer (20 bytes). |
validateRuntime
MUST revert to reject the call.
function validateRuntime(
address account,
uint32 entityId,
address sender,
uint256 value,
bytes calldata data,
bytes calldata authorization
) external;Parameters
| Name | Type | Description |
|---|---|---|
| account | address | |
| entityId | uint32 | |
| sender | address | |
| value | uint256 | |
| data | bytes | |
| authorization | bytes |
validateSignature
function validateSignature(address account, uint32 entityId, address sender, bytes32 hash, bytes calldata signature)
external
view
returns (bytes4);Parameters
| Name | Type | Description |
|---|---|---|
| account | address | |
| entityId | uint32 | |
| sender | address | |
| hash | bytes32 | |
| signature | bytes |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | bytes4 | ERC-1271 magic value 0x1626ba7e if valid, or 0xffffffff if invalid. |