Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stark: Prover and Verifier over field extensions v2 #717

Merged
merged 28 commits into from
Dec 20, 2023

Conversation

schouhy
Copy link
Contributor

@schouhy schouhy commented Dec 13, 2023

Prover and Verifier over field extensions v2

Description

This is an improvement over PR #716 that avoid casting the trace to the field extension. The immediate consequence is that the prover can no longer consider all trace polynomials and all trace LDE evaluations as a single object since they live in different fields. This PR refactors the prover's and verifier's code to handle those different types.

Evaluation of constraints to build the composition polynomial still considers all columns to live in the field extension. A followup PR will improve that to fully leverage the optimized ops between different fields. This is so divided in two different PRs for making the review process easier.

@codecov-commenter
Copy link

codecov-commenter commented Dec 13, 2023

Codecov Report

Attention: 26 lines in your changes are missing coverage. Please review.

Comparison is base (6063197) 95.77% compared to head (55ac508) 95.75%.

Files Patch % Lines
math/src/polynomial.rs 85.14% 15 Missing ⚠️
provers/stark/src/proof/stark.rs 86.15% 9 Missing ⚠️
provers/stark/src/verifier.rs 98.85% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #717      +/-   ##
==========================================
- Coverage   95.77%   95.75%   -0.03%     
==========================================
  Files         135      135              
  Lines       30136    30293     +157     
==========================================
+ Hits        28863    29007     +144     
- Misses       1273     1286      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@schouhy schouhy marked this pull request as ready for review December 18, 2023 16:57
@schouhy schouhy requested review from ajgara and a team as code owners December 18, 2023 16:57
@schouhy schouhy force-pushed the stark-prover-over-field-extensions-v2 branch from 4e0833d to ef3da23 Compare December 18, 2023 17:40
Copy link
Collaborator

@MauroToscano MauroToscano left a comment

Choose a reason for hiding this comment

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

I also checked if there was any performance issue. Proof generation time didn't change. All good

@diegokingston diegokingston added this pull request to the merge queue Dec 20, 2023
Merged via the queue into main with commit fb44319 Dec 20, 2023
7 checks passed
@diegokingston diegokingston deleted the stark-prover-over-field-extensions-v2 branch December 20, 2023 17:33
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.

None yet

6 participants