WebAuthnValidationModule
Source:Verified
Read Functions / validateUserOp
Overview

The validateUserOp function in the WebAuthnValidationModule contract verifies a user operation's signature against a specified entity. It checks the validity of the signature using the _validateSignature function, returning a constant indicating whether the signature validation passed or failed.

Inputs
  • entityId (uint32): The unique identifier for the entity associated with the user operation.
  • userOp (PackedUserOperation): A struct containing details of the user operation, including:
    • sender (address): The address of the user initiating the operation.
    • nonce (uint256): A unique number to prevent replay attacks.
    • initCode (bytes): Initialization code for the operation.
    • callData (bytes): Data to be executed in the operation.
    • accountGasLimits (bytes32): Gas limits for the operation.
    • preVerificationGas (uint256): Gas required for pre-verification.
    • gasFees (bytes32): Fees associated with the gas.
    • paymasterAndData (bytes): Data related to the paymaster.
    • signature (bytes): The signature for the operation.
  • userOpHash (bytes32): The hash of the user operation.
Outputs
  • Returns (uint256): The function returns a status code indicating the result of the signature validation:
    • _SIG_VALIDATION_PASSED (if validation is successful).
    • _SIG_VALIDATION_FAILED (if validation fails).
Emits Zero Events
Functions will often emit events during execution, often signifying key changes in state. There are no events emited by this function
Recent Transactions Calling This Function
This returns the latest 20 times that this function was called directly by a wallet or internally by another contract.
Looking for transactions where this function was called...