-
Notifications
You must be signed in to change notification settings - Fork 607
feat!: VK hash consistency check #15591
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 all commits
ccef1ce
dd56c29
faab2f9
4935550
bcf6189
53fa54c
7e12e16
d080452
73b50a7
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 |
|---|---|---|
|
|
@@ -268,7 +268,7 @@ template <typename RecursiveFlavor> class RecursiveVerifierTest : public testing | |
| } | ||
| // Check the size of the recursive verifier | ||
| if constexpr (std::same_as<RecursiveFlavor, MegaZKRecursiveFlavor_<UltraCircuitBuilder>>) { | ||
| uint32_t NUM_GATES_EXPECTED = 870572; | ||
| uint32_t NUM_GATES_EXPECTED = 870546; | ||
|
Contributor
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. big moves. Is it clear what this is from?
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. I guess splitting a 254 challenge into two adds some gates. |
||
| BB_ASSERT_EQ(static_cast<uint32_t>(outer_circuit.get_num_finalized_gates()), | ||
| NUM_GATES_EXPECTED, | ||
| "MegaZKHonk Recursive verifier changed in Ultra gate count! Update this value if you " | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -452,11 +452,10 @@ template <typename TranscriptParams> class BaseTranscript { | |
| */ | ||
| Fr hash_independent_buffer(const std::string& label) | ||
| { | ||
| Fr new_challenge = TranscriptParams::hash(independent_hash_buffer); | ||
| std::array<Fr, 2> new_challenges = TranscriptParams::split_challenge(new_challenge); | ||
| Fr buffer_hash = TranscriptParams::hash(independent_hash_buffer); | ||
| independent_hash_buffer.clear(); | ||
| add_to_hash_buffer(label, new_challenge); | ||
| return new_challenges[0]; | ||
| add_to_hash_buffer(label, buffer_hash); | ||
|
Contributor
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. 👍 |
||
| return buffer_hash; | ||
| } | ||
|
|
||
| /** | ||
|
|
||
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.
core change
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.
maybe worth a comment explanation?