-
Notifications
You must be signed in to change notification settings - Fork 324
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
feat: eccvm sumcheck with commitments to round univariates #11206
Merged
+1,096
−216
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
9a71a91
eccvm sumcheck butchered
iakovenkos 1b18f05
wip wip
iakovenkos e00dd04
eccvm verifies
iakovenkos 682c075
build fixed recursion failing
iakovenkos af6d6e6
debugging rec verifier
iakovenkos 9323abe
recursion fix
iakovenkos 230ce10
sumcheck output unified
iakovenkos f1eb3c5
remove self reduce
iakovenkos 8cb98b0
trying to constify eccvm recursive
iakovenkos 806ef49
Merge branch 'master' into si/fixing-eccvm-zk-sumcheck
iakovenkos 41654f3
Merge branch 'master' into si/fixing-eccvm-zk-sumcheck
iakovenkos c91f533
build fix
iakovenkos e1d1d11
Merge branch 'si/fixing-eccvm-zk-sumcheck' of github.com:AztecProtoco…
iakovenkos 7c73666
tests fixed
iakovenkos f525ef2
Merge branch 'master' into si/fixing-eccvm-zk-sumcheck
iakovenkos 6aec0f7
commited sumcheck test added
iakovenkos 74cd1a8
test cleaned up
iakovenkos f53a308
creating test for pcs
iakovenkos 2f1f99d
Merge branch 'si/fixing-eccvm-zk-sumcheck' of github.com:AztecProtoco…
iakovenkos 35df724
Merge branch 'master' into si/fixing-eccvm-zk-sumcheck
iakovenkos f4c3dc8
shplemini test + clean-up + figuring out constness
iakovenkos 1587941
const proof size + clean up + docs
iakovenkos e94c031
eccvm bench correction
iakovenkos 9e5e4e7
build fix
iakovenkos 51b3766
Merge branch 'master' into si/fixing-eccvm-zk-sumcheck
iakovenkos 6731c5d
more clean-up
iakovenkos fc108a3
Merge branch 'si/fixing-eccvm-zk-sumcheck' of github.com:AztecProtoco…
iakovenkos 80b6bf0
Merge branch 'master' into si/fixing-eccvm-zk-sumcheck
iakovenkos 48a1a18
eccvm recursive failure tests fixed
iakovenkos fdb62f1
bug fix
iakovenkos 4a3f07b
resolving comments
iakovenkos 98d304f
killed optional bool in sumcheck output + resolving comments
iakovenkos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ template <typename Flavor> struct SumcheckOutput { | |
ClaimedEvaluations claimed_evaluations; | ||
// Whether or not the evaluations of multilinear polynomials \f$ P_1, \ldots, P_N \f$ and final Sumcheck evaluation | ||
// have been confirmed | ||
std::optional<bool> verified = false; // optional b/c this struct is shared by the Prover/Verifier | ||
bool verified = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thank you for this! |
||
// For ZK Flavors: the sum of the Libra constant term and Libra univariates evaluated at Sumcheck challenges | ||
FF claimed_libra_evaluation = FF{ 0 }; | ||
// For ECCVMVerifier: Commitments to round univariates | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,7 +88,7 @@ bool AvmVerifier::verify_proof(const HonkProof& proof, const std::vector<std::ve | |
SumcheckOutput<Flavor> output = sumcheck.verify(relation_parameters, alpha, gate_challenges); | ||
|
||
// If Sumcheck did not verify, return false | ||
if (!output.verified.has_value() || !output.verified.value()) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @iakovenkos for having adapted the AVM templates. |
||
if (!output.verified) { | ||
vinfo("Sumcheck verification failed"); | ||
return false; | ||
} | ||
|
Oops, something went wrong.
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.
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.
Ok right so you've already made a separate method for
verify
so probably even more reason to do something similar forprove
. Above I suggested a specialization rather than a separate method entirely but I think either approach worksThere 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.
replied above