[DO NOT MERGE] v1.1.0 Simulation-only wallet runtime bytecode for accurate VGL estimation (bundler overrides)#135
Open
amiecorso wants to merge 6 commits into
Conversation
Collaborator
🟡 Heimdall Review Status
|
amiecorso
commented
Nov 5, 2025
Contributor
Author
There was a problem hiding this comment.
This is the output we need to pass as bundler override to eth_estimateUserOperationGas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds simulation-only runtime bytecode and docs for use in producing accurate Verification Gas Limit (VGL) estimates for passkey (WebAuthn) flows via bundler overrides of
CoinbaseSmartWalletimplementations.see #138 for v1.0.0 simulation bytecode
Motivation
Simulations necessarily use invalid passkey signatures. Invalid signatures take different verification paths than real valid signatures onchain, causing large gas deviations. (e.g., RIP-7212 precompile falls back to heavy FCL path during simulation but does not with a valid signature during execution.). This PR provides fake, simulation-friendly bytecode that forces the “valid signature” path so bundlers can estimate VGL accurately without manual buffers, instead passing this simulation bytecode as a state override to the bundler.
What’s in this PR
verifySimwired inCoinbaseSmartWalletto ignore provided WebAuthn signature data at the final check and instead use a known-valid P‑256 vector so simulation follows the same path as real execution.snapshots/SimulationOverrides/CoinbaseSmartWallet.runtime.hexUsage (bundler overrides)
eth_estimateUserOperationGasfor passkey flows:CoinbaseSmartWalletimplementation address(es) with the bytecode insnapshots/SimulationOverrides/CoinbaseSmartWallet.runtime.hex.CoinbaseSmartWalletversions:0x000100abaad02f1cfC8Bbe32bD5a564817339E72)0x00000110dCdEdC9581cb5eCB8467282f2926534d)verifySimensures the verification path succeeds to mirror onchain valid-signature behavior.Simulation-only! Do not deploy