-
Notifications
You must be signed in to change notification settings - Fork 275
Refactor of accumulation & more precise R1CS evaluation #1037
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
Merged
Conversation
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
…tracking-branch-91f7
markosg04
approved these changes
Nov 3, 2025
Collaborator
markosg04
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot! just nits/questions
Contributor
Author
|
@markosg04 Thanks so much for the review! I believe I have addressed all of them (some are put as TODOs for the future). Once the binary check thing gets fixed then I think this is ready to be merged. |
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.
I don't refactor univariate skip in this PR, instead will wait for the generic sumcheck prover interface to hit first (
compute_messageandingest_challenge).PR Description generated by GPT-5:
Title
R1CS refactor: explicit product-virtual constraints and LHS/RHS swap in final uniform constraint
Summary
r1cs::constraints(previously implicit inspartan/product.rs).constraints.rsis data-only, runtime logic lives underr1cs::evaluation.spartan/product.rswith the new API (consume metadata; use typed evaluators; minor API cleanups).Why
product.rs), and simplifies verifier/prover agreement.flag − 1to1 − flag, keeping Bz boolean-sized and consistent with the first-group shape.Key Changes
DoNotUpdateUnexpandedPC == 1.1 == DoNotUpdateUnexpandedPC(LHS/RHS swapped to keep Bz boolean-shaped).r1cs::constraints.Jump · (1 − NextIsNoop)on the right factor.spartan/product.rsconsumes this metadata and uses a typed product-virtual evaluator; it no longer hardcodes the term list.Additional small diffs (non-R1CS)