-
Notifications
You must be signed in to change notification settings - Fork 613
refactor: moving public inputs back to instance #5315
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,7 +49,7 @@ template <typename Flavor> bool UltraVerifier_<Flavor>::verify_proof(const HonkP | |
| transcript = std::make_shared<Transcript>(proof); | ||
| VerifierCommitments commitments{ key }; | ||
| OinkVerifier<Flavor> oink_verifier{ key, transcript }; | ||
| auto [relation_parameters, witness_commitments] = oink_verifier.verify(); | ||
| auto [relation_parameters, witness_commitments, public_inputs] = oink_verifier.verify(); | ||
|
Contributor
Author
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. seems like public_inputs isn't used by ultra_verifier so maybe this can just be _ 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. the public inputs are used by the verifier to compute the public_input_delta which i believe is now computed by OinkVerifier so maybe the Oink output shouldn't even include them
Contributor
Author
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. they're included because the protogalaxy verifier needs to fold them 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. Right yeah |
||
|
|
||
| // Copy the witness_commitments over to the VerifierCommitments | ||
| for (auto [wit_comm_1, wit_comm_2] : zip_view(commitments.get_witness(), witness_commitments.get_all())) { | ||
|
|
||
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.
not sure if these std::move()s are doing anything here
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.
think it's good practice since we dont need the oink_verifier from here onwards and it makes transfer of ownership explicit