Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
chonk_step_processor.hpp
Go to the documentation of this file.
1#pragma once
2
5#include <cstdint>
6#include <memory>
7#include <string>
8#include <vector>
9
10namespace bb {
11
13
15 std::vector<uint8_t> bytes;
16 std::vector<bb::fr> fields;
17};
18
20 bool valid = true;
21 std::vector<uint8_t> actual_vk;
22};
23
30
32 public:
33 explicit ChonkStepProcessor(std::vector<CircuitKind> circuit_kinds);
34
36 size_t get_num_circuits_accumulated() const { return ivc->get_num_circuits_accumulated(); }
37
39
42
43 private:
45};
46
48
50 const std::vector<uint8_t>& precomputed_vk,
51 CircuitKind kind);
52
54
56
57} // namespace bb
std::shared_ptr< Chonk > get_ivc() const
std::shared_ptr< MegaZKFlavor::VKAndHash > get_hiding_kernel_vk_and_hash() const
size_t get_num_circuits_accumulated() const
std::shared_ptr< Chonk > ivc
void process_step(ChonkExecutionStep &&step, ChonkPrecomputedVkPolicy policy=ChonkPrecomputedVkPolicy::DEFAULT)
Entry point for Barretenberg command-line interface.
Definition api.hpp:5
std::shared_ptr< MegaZKFlavor::VKAndHash > deserialize_chonk_vk_and_hash(const std::vector< uint8_t > &vk)
ChonkVkCheckResult check_precomputed_chonk_vk(acir_format::AcirProgram &program, const std::vector< uint8_t > &precomputed_vk, CircuitKind kind)
std::shared_ptr< Chonk::MegaZKVerificationKey > deserialize_chonk_vk(const std::vector< uint8_t > &vk)
ChonkVkData compute_chonk_vk(acir_format::AcirProgram &program, CircuitKind kind)
VerifierCommitmentKey< Curve > vk
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
Struct containing both the constraints to be added to the circuit and the witness vector.
std::vector< uint8_t > precomputed_vk
acir_format::AcirProgram program
std::vector< uint8_t > actual_vk
std::vector< bb::fr > fields
std::vector< uint8_t > bytes