mirror of
https://github.com/getwax/zk-account-abstraction.git
synced 2026-01-09 20:47:58 -05:00
1. A new API for an account (or paymaster) to report signature check validation: instead of revert, they should return `SIG_VALIDATION_FAILED` (1) to mark signature validation. checking for `tx.origin` as zero is no longer in use. 2. ValidateUserOp returns the SIG_VALIDATION_FAILED value (like any other deadline) for a bundler to check. 3. `handleOps` reverts on such signature failure. 4. a new `simulateHandleOp()` helper method, which executes a full UserOp (validation+execution). like `validateUserOp`, it reverts so it never commits changes on-chain, and doesn't check for signatures, and only used for off-chain simulation. This way, a userOp can be "estimated", even if it depends on the deployed account (e.g. it is a method call on a newly deployed account, or depends on the account's state such as its balance)
11 KiB
11 KiB