-
Notifications
You must be signed in to change notification settings - Fork 266
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: protogalaxy interfaces #2125
Changes from 26 commits
94418e5
f98e95f
0749289
06c02ac
884318a
6403b3b
18e4019
9172e6f
2018ffe
9ff0c23
c76f0cd
8c38123
34a1da5
88ea704
1560d24
fc4880f
4e11ee8
67ace3b
cf4435f
c7a6282
0157a1c
62e0c62
b5de3a9
8f07bd4
7e3bf57
78a643b
1eb15fb
4fba3a2
ce7d33c
7406e65
599d20a
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 |
---|---|---|
|
@@ -224,11 +224,21 @@ void construct_proof_with_specified_num_iterations(State& state, | |
test_circuit_function(builder, num_iterations); | ||
|
||
auto composer = Composer(); | ||
auto ext_prover = composer.create_prover(builder); | ||
state.ResumeTiming(); | ||
if constexpr (Composer::NAME_STRING == "UltraHonk") { | ||
auto instance = composer.create_instance(builder); | ||
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. ideally, I think the benchmarks should be templated by Flavor |
||
auto ext_prover = composer.create_prover(instance); | ||
state.ResumeTiming(); | ||
|
||
// Construct proof | ||
auto proof = ext_prover.construct_proof(); | ||
// Construct proof | ||
auto proof = ext_prover.construct_proof(); | ||
|
||
} else { | ||
auto ext_prover = composer.create_prover(builder); | ||
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. How much more work would it be to implement for 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. erm, couple of hours max, will do 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. but the divergence around here is between honk and plonk now 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. Not ideal, but we have accepted divergence with Plonk if it means improving Honk. |
||
state.ResumeTiming(); | ||
|
||
// Construct proof | ||
auto proof = ext_prover.construct_proof(); | ||
} | ||
} | ||
} | ||
|
||
|
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.
Please use the type system for this (one of the
Is
concepts) and not the name string. I think the name string can go away from theInstance
definition.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.
I'd like to get rid of the
NAME_STRING
altogether but it was needed for something. But in the past using identifiers lead to really confusing code.