[DO NOT MERGE] v1.0.0 Simulation-only wallet runtime bytecode for accurate VGL estimation (bundler overrides) #138
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
CoinbaseSmartWalletv1.0.0 implementation.See #135 for related PR with v1.1.0 simulation bytecode. See README there for additional explanation.
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)verifySimensures the verification path succeeds to mirror onchain valid-signature behavior.Simulation-only! Do not deploy