EIP-7823: Set upper bounds for MODEXP --- OOB side
#813
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.
Note
Adds EIP-7823 constants, enforces 1024-byte bound in MODEXP xbs, and rewrites Osaka MODEXP pricing with a 500 gas minimum; minor renames for comparison signals across forks.
GAS_CONST_MODEXP_EIP_7823(500) andEIP_7823_MODEXP_UPPER_BYTE_SIZE_BOUND(1024) inconstants/constants.lisp.1024, addxbs-within-bounds/xbs-out-of-boundsflags, enforce binarity, and expand hub-justification logic.prc-modexp-xbs---compo-to_512toprc-modexp-xbs---comparison-to-512and update constraints.r@candexponent-logisZero, computesceil(max(mbs,bbs)/8)and derivedraw-cost, compares againstGAS_CONST_MODEXP_EIP_7823(min 500), and validatescallee-gasvs precompile cost.prc-modexp-lead---result-of-comparisonand update usage.Written by Cursor Bugbot for commit b73e423. This will update automatically on new commits. Configure here.