Skip to content

feat: range proof gas splitting - #576

Merged
leruaa merged 29 commits into
mainfrom
yuwen/range-gas-splitting
Oct 10, 2025
Merged

leruaa merged 29 commits into
mainfrom
yuwen/range-gas-splitting

Conversation

@yuwen01

@yuwen01 yuwen01 commented Aug 2, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@yuwen01
yuwen01 marked this pull request as ready for review August 2, 2025 01:57

@vcastellm vcastellm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx! We had an initial implementation of this WIP on our side too, we observed several possible edge cases, for instance, when empty block would be great to submit range proofs with a max block limit, so a range is created when there are empty blocks not using enough gas.

Base automatically changed from yuwen/audit-3.0.0-fix to main August 6, 2025 21:22
@ghost

ghost commented Aug 19, 2025

Copy link
Copy Markdown

very nice - this will improve UX a lot providing stable/reliable proving timings which enable to have better predictability on finality

@github-actions

Copy link
Copy Markdown
Contributor

Performance Comparison (ELF: range-elf-embedded)

Range 8151738~8151743

Metric Base Branch Current PR Diff (%)
Total Instructions 643879373 643469890 -0.06%
Oracle Verify Cycles 75987873 75987906 0.00%
Derivation Cycles 490325623 490331696 0.00%
Block Execution Cycles 7129141 7126981 -0.03%
Blob Verification Cycles 23539845 23288884 -1.07%
Total SP1 Gas 1045584243 1047202454 0.15%
Cycles per Block 128775874 128693978 -0.06%
Cycles per Transaction 128775874 128693978 -0.06%
BN Pair Cycles 0 0 0.00%
BN Add Cycles 0 0 0.00%
BN Mul Cycles 0 0 0.00%
KZG Eval Cycles 0 0 0.00%
EC Recover Cycles 0 0 0.00%
P256 Verify Cycles 0 0 0.00%

Comment thread book/validity/proposer.md Resolved
Comment thread validity/src/config.rs Resolved
Comment thread validity/src/env.rs Resolved
Comment thread validity/src/utils.rs Resolved
Comment thread validity/src/utils.rs Resolved
Comment thread validity/src/utils.rs Resolved
Comment thread validity/src/utils.rs Resolved
Comment thread validity/src/proposer.rs Resolved
Comment thread validity/src/utils.rs Resolved
Comment thread validity/src/utils.rs Resolved

@fakedev9999 fakedev9999 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@leruaa
leruaa merged commit 52d5d84 into main Oct 10, 2025
@leruaa
leruaa deleted the yuwen/range-gas-splitting branch October 10, 2025 08:24
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.

4 participants