-
Notifications
You must be signed in to change notification settings - Fork 611
refactor!: Use circuit builders #895
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 5 commits
2dc4d77
0d186af
350ab82
ea69fc5
64c8ba7
d488fc4
ded2a64
2224d0f
aa6f850
f91ece9
86fa2cd
b3097e2
e3eed2f
019c759
f888db5
4958f0a
2b8e215
d19e5ee
80d7d22
ee71367
27b9a0a
46b831f
c10ae38
d5fe0d3
ee3d9e0
bef4f57
aaeb225
ec3fbf4
5d20a8d
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 |
|---|---|---|
|
|
@@ -361,12 +361,12 @@ PublicKernelInputs<NT> get_kernel_inputs_with_previous_kernel(NT::boolean privat | |
| .bytecode_hash = 1234567, | ||
| }; | ||
|
|
||
| CombinedHistoricTreeRoots<NT> const historic_tree_roots = { .private_historic_tree_roots = { | ||
| .private_data_tree_root = 1000, | ||
| .contract_tree_root = 2000, | ||
| .l1_to_l2_messages_tree_root = 3000, | ||
| .private_kernel_vk_tree_root = 4000, | ||
| } }; | ||
| // CombinedHistoricTreeRoots<NT> const historic_tree_roots = { .private_historic_tree_roots = { | ||
|
Collaborator
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. Should we remove instead?
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. Probably? I haven't looked into the history or discussed with core circuits team yet.
Collaborator
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. Yeah I didn't see it was a draft, my bad
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 ended up making an issue to look at this and two other unused variables in the same test file, and I reference that issue in TODOs in the code. |
||
| // .private_data_tree_root = 1000, | ||
| // .contract_tree_root = 2000, | ||
| // .l1_to_l2_messages_tree_root = 3000, | ||
| // .private_kernel_vk_tree_root = 4000, | ||
| // } }; | ||
|
|
||
| CombinedConstantData<NT> const end_constants = { | ||
| .historic_tree_roots = | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,10 +42,7 @@ template <typename Composer> struct CircuitTypes { | |
| using ecdsa_signature = stdlib::ecdsa::signature<Composer>; | ||
|
|
||
| using AggregationObject = stdlib::recursion::aggregation_state<bn254>; | ||
| using recursive_inner_verifier_settings = | ||
| std::conditional_t<std::same_as<Composer, plonk::TurboPlonkComposer>, | ||
| stdlib::recursion::recursive_turbo_verifier_settings<bn254>, | ||
| stdlib::recursion::recursive_ultra_verifier_settings<bn254>>; | ||
| using recursive_inner_verifier_settings = stdlib::recursion::recursive_ultra_verifier_settings<bn254>; | ||
|
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. Is his because we don't expect turbo to be used as inner circuit builder anymore? If so, makes sense.
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. Well, Luke's previous PR fixed the inner circuit type to Ultra (indeed, |
||
| using VK = stdlib::recursion::verification_key<bn254>; | ||
| // Notice: no CircuitType for a Proof: we only ever handle native; the verify_proof() function swallows the | ||
| // 'circuit-type-ness' of the 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.
This is nice,
aggregateshouldn't have to know what the number of public inputs of the private call is.