Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
circuit_schema.hpp
Go to the documentation of this file.
1#pragma once
2#include <fstream>
3
5
6namespace smt_circuit_schema {
7
56
57CircuitSchema unpack_from_buffer(const msgpack::sbuffer& buf);
58CircuitSchema unpack_from_file(const std::string& filename);
60} // namespace smt_circuit_schema
uint8_t const * buf
Definition data_store.hpp:9
CircuitSchema unpack_from_file(const std::string &filename)
Get the CircuitSchema object.
CircuitSchema unpack_from_buffer(const msgpack::sbuffer &buf)
Get the CircuitSchema object.
void print_schema_for_use_in_python(CircuitSchema &cir)
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
Serialized state of a circuit.
std::unordered_map< uint32_t, std::string > vars_of_interest
std::vector< std::vector< std::vector< bb::fr > > > lookup_tables
MSGPACK_FIELDS(modulus, public_inps, vars_of_interest, variables, selectors, wires, real_variable_index, lookup_tables, real_variable_tags, range_tags, rom_records, rom_states, ram_records, ram_states, circuit_finalized)
std::vector< uint32_t > real_variable_index
std::vector< uint32_t > public_inps
std::unordered_map< uint32_t, uint64_t > range_tags
std::vector< std::vector< std::vector< uint32_t > > > ram_records
std::vector< uint32_t > real_variable_tags
std::vector< std::vector< std::vector< bb::fr > > > selectors
std::vector< std::vector< std::vector< uint32_t > > > wires
std::vector< std::vector< std::array< uint32_t, 2 > > > rom_states
std::vector< std::vector< std::vector< uint32_t > > > rom_records
std::vector< std::vector< uint32_t > > ram_states