-
Notifications
You must be signed in to change notification settings - Fork 105
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
chore: Remove usage of ComposerHelper
and use CircuitBuilder
from the API
#555
Conversation
83a96e0
to
b6f29d6
Compare
ComposerHelper
and use CircuitBuilder
in the API
ComposerHelper
and use CircuitBuilder
in the APIComposerHelper
and use CircuitBuilder
from the API
@@ -156,5 +156,6 @@ | |||
"-g" | |||
], | |||
"cmake.useCMakePresets": "auto", | |||
"editor.inlayHints.enabled": "offUnlessPressed" |
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 an annoying default probably most people don't want.
@@ -202,7 +201,7 @@ std::shared_ptr<typename Flavor::ProvingKey> UltraHonkComposerHelper_<Flavor>::c | |||
// Initialize proving_key | |||
// TODO(#392)(Kesha): replace composer types. | |||
proving_key = initialize_proving_key<Flavor>( | |||
circuit_constructor, crs_factory_.get(), minimum_circuit_size, num_randomized_gates, ComposerType::PLOOKUP); |
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 removed the need to pass this argument in so many places. It's only currently needed for Plonk.
@@ -64,7 +62,7 @@ std::shared_ptr<plonk::proving_key> StandardPlonkComposerHelper::compute_proving | |||
// Initialize circuit_proving_key | |||
// TODO(#392)(Kesha): replace composer types. | |||
circuit_proving_key = proof_system::initialize_proving_key<Flavor>( |
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.
Probably should just extract this CircuitType from flavor, or just move responsibility of encoding this information in vk to a responsibility outside of Bb.
@@ -56,19 +56,16 @@ class StandardCircuitConstructor : public CircuitConstructorBase<arithmetization | |||
// m l r o c | |||
create_poly_gate({ one_idx, one_idx, one_idx, 1, 1, 1, 1, -4 }); | |||
}; | |||
// This constructor is needed to simplify switching between circuit constructor and composer |
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.
Here Kesha is referring to the splitting work. This constructor shouldn't exist, and now it doesn't.
… the API (AztecProtocol/barretenberg#555) Co-authored-by: Suyash Bagad <[email protected]>
… the API (AztecProtocol/barretenberg#555) Co-authored-by: Suyash Bagad <[email protected]>
Description
#501 Got rid of the shell composer classes that forwarded function calls to circuit constructors and composer helpers. This PR focuses on renaming objects and moving files to clean up after that work.
Checklist:
@brief
describing the intended functionality.include
directives have been added.