Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
private_execution_steps.hpp
Go to the documentation of this file.
3#include <cstdint>
4#include <filesystem>
5#include <string>
6#include <vector>
7
8namespace bb {
9
24 // Represents bincode.
25 std::vector<uint8_t> bytecode;
26 // Represents bincoded witness data.
27 std::vector<uint8_t> witness;
28 // Represents a legacy-serialized vk.
29 std::vector<uint8_t> vk;
30 // Represents the function name.
31 std::string function_name;
32
33 // Unrolled from MSGPACK_FIELDS for custom name for function_name.
34 void msgpack(auto pack_fn) { pack_fn(NVP(bytecode, witness, vk), "functionName", function_name); };
35 void self_decompress();
36 static std::vector<PrivateExecutionStepRaw> load_and_decompress(const std::filesystem::path& input_path);
37 static std::vector<PrivateExecutionStepRaw> load(const std::filesystem::path& input_path);
38 static std::vector<PrivateExecutionStepRaw> parse_uncompressed(const std::vector<uint8_t>& buf);
40 const std::filesystem::path& output_path);
41};
42
43// TODO(https://github.com/AztecProtocol/barretenberg/issues/1162) this should have a common code path with
44// the WASM folding stack code.
53} // namespace bb
uint8_t const * buf
Definition data_store.hpp:9
#define NVP(...)
Entry point for Barretenberg command-line interface.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
This is the msgpack encoding of the objects returned by the following typescript: const stepToStruct ...
static void compress_and_save(std::vector< PrivateExecutionStepRaw > &&steps, const std::filesystem::path &output_path)
static std::vector< PrivateExecutionStepRaw > load_and_decompress(const std::filesystem::path &input_path)
static std::vector< PrivateExecutionStepRaw > parse_uncompressed(const std::vector< uint8_t > &buf)
static std::vector< PrivateExecutionStepRaw > load(const std::filesystem::path &input_path)
std::vector< std::shared_ptr< ClientIVC::MegaVerificationKey > > precomputed_vks
std::shared_ptr< ClientIVC > accumulate()
void parse(std::vector< PrivateExecutionStepRaw > &&steps)
std::vector< acir_format::AcirProgram > folding_stack
std::vector< std::string > function_names