-
Notifications
You must be signed in to change notification settings - Fork 158
Add quadratic and cubic sumcheck #1003
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1003 +/- ##
==========================================
+ Coverage 72.22% 72.25% +0.02%
==========================================
Files 160 160
Lines 35340 35620 +280
==========================================
+ Hits 25525 25737 +212
- Misses 9815 9883 +68 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
crates/provers/sumcheck/src/lib.rs
Outdated
if factors.is_empty() { | ||
return Err("Cannot sum product of zero factors.".to_string()); | ||
} | ||
let num_total_vars = factors[0].num_vars(); |
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.
you can combine the previous check with this one, to void getting the element by index with []
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! Solved in ccbb7f9
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.
good solution 🏅
|
||
// Initialize Fiat-Shamir transcript | ||
let mut transcript = DefaultTranscript::<F>::default(); | ||
transcript.append_bytes(b"initial_sum"); |
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.
Transcript should also contain the number of factors and number of variables
TITLE
Description
This PR improves the previous version of the sumcheck protocol allowing to support quadratic and cubic cases
Type of change
Please delete options that are not relevant.
Checklist