feat(l1): charge EIP-8141 arbitrary frame signatures their own gas - #7045
Closed
AnkushinDaniil wants to merge 1 commit into
Closed
feat(l1): charge EIP-8141 arbitrary frame signatures their own gas#7045AnkushinDaniil wants to merge 1 commit into
AnkushinDaniil wants to merge 1 commit into
Conversation
This was referenced Jul 28, 2026
AnkushinDaniil
force-pushed
the
daniil/eip8141-arbitrary-frame-gas
branch
from
July 29, 2026 06:12
ae1609d to
dc905f1
Compare
Contributor
|
Superseded by #7004: |
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.
Problem
The EIP-8141 signature scheme table assigns a verification gas cost to every scheme, including
ARBITRARY:FrameTransaction::signature_verification_costcharged 0 forARBITRARYentries (it was written against an older spec snapshot that predates the 100-gas entry). That under-chargestotal_gas_limitby 100 perARBITRARYsignature and also under-counts the validation-prefix verify-gas budget, so theMAX_VERIFY_GASboundary sits 100 gas away from where a conformant client puts it.Change
ARBITRARYsignature insignature_verification_cost.total_gas_limitdiffers by exactly2800 - 100between an otherwise-identical SECP256K1 and ARBITRARY transaction (with an RLP-shape guard so the comparison isolates verification cost), and the prefix verify-gas budget flips from valid toVerifyGasBudgetExceededexactly at the 100-gas boundary.Evidence
Commands run on this branch:
Stack
Targets
frames-devnet-0. Part of a series of independent EIP-8141 fixes, one PR per logical change, each standing alone against the same base. Siblings: #7040 (canonical low-s), #7043 (recovery id at ecrecover boundary), #7044 (intrinsic gas over payload bytes), #7046 (frame gas refunds), #7047 (frame receipt storage encoding), #7048 (skipped-frame status 2), #7049 (EIP-7623 calldata floor).Consensus risk / limits
Consensus-affecting: it raises
total_gas_limit(and the verify-gas budget accounting) for any frame transaction carryingARBITRARYsignatures. Covered by unit tests only; no cross-client conformance fixture yet.