Function: _validatePaymasterUserOp(UserOperation calldata userOp, bytes32 userOpHash, uint256 requiredPreFund)
This function is used to verify that the UserOperation's Paymaster data were signed by the external signer.
Inputs
userOpControl: Fully controlled by user.
Constraints: All fields are used in signature validation and thus must be valid.
Impact: This is the
UserOperationbeing validated.
userOpHashControl: Not controlled by user.
Constraints: N/A.
Impact: This is returned as part of the context structure.
requiredPreFundControl: Not controlled by user.
Constraints: N/A.
Impact: This is the required amount of prefunding for the paymaster.
Branches and code coverage (including function calls)
Intended branches
Succeeds with valid gas limit,
userOp, andrequiredPrefund.
Negative behavior
Invalid signature causes error to be returned.
Insufficient
requiredPrefundrevert.Parsing the Paymaster data causes revert.