5#include "barretenberg/proof_system/circuit_builder/generated/AvmMini_circuit_builder.hpp"
6#include "barretenberg/proof_system/composer/composer_lib.hpp"
7#include "barretenberg/srs/global_crs.hpp"
8#include "barretenberg/vm/generated/AvmMini_prover.hpp"
9#include "barretenberg/vm/generated/AvmMini_verifier.hpp"
23 static constexpr std::string_view NAME_STRING =
"AvmMini";
24 static constexpr size_t NUM_RESERVED_GATES = 0;
25 static constexpr size_t NUM_WIRES = Flavor::NUM_WIRES;
27 std::shared_ptr<ProvingKey> proving_key;
28 std::shared_ptr<VerificationKey> verification_key;
31 std::shared_ptr<barretenberg::srs::factories::CrsFactory<Flavor::Curve>> crs_factory_;
34 std::shared_ptr<CommitmentKey> commitment_key;
36 std::vector<uint32_t> recursive_proof_public_input_indices;
37 bool contains_recursive_proof =
false;
38 bool computed_witness =
false;
40 AvmMiniComposer() { crs_factory_ = barretenberg::srs::get_crs_factory(); }
42 AvmMiniComposer(std::shared_ptr<ProvingKey> p_key, std::shared_ptr<VerificationKey> v_key)
43 : proving_key(std::move(p_key))
44 , verification_key(std::move(v_key))
53 std::shared_ptr<ProvingKey> compute_proving_key(
CircuitConstructor& circuit_constructor);
54 std::shared_ptr<VerificationKey> compute_verification_key(
CircuitConstructor& circuit_constructor);
63 void compute_commitment_key(
size_t circuit_size)
65 commitment_key = std::make_shared<CommitmentKey>(circuit_size, crs_factory_);
Definition: AvmMini_circuit_builder.hpp:46
Definition: AvmMini_composer.hpp:12
Definition: AvmMini_prover.hpp:13
Definition: AvmMini_verifier.hpp:9
Definition: AvmMini_flavor.hpp:231
Definition: AvmMini_flavor.hpp:21
CommitmentKey object over a pairing group 𝔾₁.
Definition: commitment_key.hpp:35
Definition: verification_key.hpp:25
Defines particular circuit builder types expected to be used for circuit construction in stdlib and c...
Definition: claim.hpp:6