Skip to content

Conversation

@OlivierBBB
Copy link
Collaborator

@OlivierBBB OlivierBBB commented Oct 23, 2025

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.

  • EIP-7823 support:
    • Add GAS_CONST_MODEXP_EIP_7823 (500) and EIP_7823_MODEXP_UPPER_BYTE_SIZE_BOUND (1024) in constants/constants.lisp.
  • MODEXP xbs:
    • Osaka: implement upper-bound check against 1024, add xbs-within-bounds/xbs-out-of-bounds flags, enforce binarity, and expand hub-justification logic.
    • Cancun/London/Shanghai/Prague: rename prc-modexp-xbs---compo-to_512 to prc-modexp-xbs---comparison-to-512 and update constraints.
  • MODEXP pricing (Osaka):
    • Replace prior logic with stepwise computation: checks for r@c and exponent-log isZero, computes ceil(max(mbs,bbs)/8) and derived raw-cost, compares against GAS_CONST_MODEXP_EIP_7823 (min 500), and validates callee-gas vs precompile cost.
  • MODEXP lead (Osaka):
    • Rename comparison accessor to prc-modexp-lead---result-of-comparison and update usage.

Written by Cursor Bugbot for commit b73e423. This will update automatically on new commits. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants