34 void msgpack(
auto&& pack_fn) { pack_fn(); }
58 void msgpack(
auto&& pack_fn) { pack_fn(); }
83 void msgpack(
auto&& pack_fn) { pack_fn(); }
141 std::vector<uint8_t>
vk;
Shared type definitions for the Barretenberg RPC API.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
A full proof for the IVC scheme containing a Mega proof showing correctness of the hiding circuit (wh...
Empty response indicating successful circuit accumulation.
static constexpr const char * MSGPACK_SCHEMA_NAME
void msgpack(auto &&pack_fn)
bool operator==(const Response &) const =default
Accumulate the previously loaded circuit into the IVC proof.
bool operator==(const ClientIvcAccumulate &) const =default
Response execute(BBApiRequest &request) &&
std::vector< uint8_t > witness
Serialized witness data for the last loaded circuit.
static constexpr const char * MSGPACK_SCHEMA_NAME
Contains the validation result.
static constexpr const char * MSGPACK_SCHEMA_NAME
std::vector< uint8_t > actual_vk
The actual VK it should be.
bool operator==(const Response &) const =default
bool valid
True if the precomputed VK matches the circuit.
MSGPACK_FIELDS(valid, actual_vk)
Verify that a precomputed verification key matches the circuit.
static constexpr const char * MSGPACK_SCHEMA_NAME
Response execute(const BBApiRequest &request={}) &&
CircuitInput circuit
Circuit with its precomputed verification key.
bool operator==(const ClientIvcCheckPrecomputedVk &) const =default
Contains the computed IVC verification key.
bool operator==(const Response &) const =default
static constexpr const char * MSGPACK_SCHEMA_NAME
std::vector< uint8_t > bytes
Serialized IVC verification key in binary format.
Compute IVC verification key for the complete proof.
static constexpr const char * MSGPACK_SCHEMA_NAME
Response execute(const BBApiRequest &request={}) &&
bool operator==(const ClientIvcComputeIvcVk &) const =default
Contains the computed verification key in multiple formats.
static constexpr const char * MSGPACK_SCHEMA_NAME
std::vector< bb::fr > fields
Verification key as array of field elements.
bool operator==(const Response &) const =default
MSGPACK_FIELDS(bytes, fields)
std::vector< uint8_t > bytes
Serialized verification key in binary format.
Compute standalone verification key for a circuit.
static constexpr const char * MSGPACK_SCHEMA_NAME
Response execute(const BBApiRequest &request={}) &&
bool operator==(const ClientIvcComputeStandaloneVk &) const =default
Empty response indicating successful circuit loading.
void msgpack(auto &&pack_fn)
static constexpr const char * MSGPACK_SCHEMA_NAME
bool operator==(const Response &) const =default
Load a circuit into the ClientIVC instance for accumulation.
bool operator==(const ClientIvcLoad &) const =default
CircuitInput circuit
Circuit to be loaded with its bytecode and verification key.
static constexpr const char * MSGPACK_SCHEMA_NAME
Response execute(BBApiRequest &request) &&
Contains the generated IVC proof.
bool operator==(const Response &) const =default
ClientIVC::Proof proof
Complete IVC proof for all accumulated circuits.
static constexpr const char * MSGPACK_SCHEMA_NAME
Generate a proof for all accumulated circuits.
void msgpack(auto &&pack_fn)
static constexpr const char * MSGPACK_SCHEMA_NAME
bool operator==(const ClientIvcProve &) const =default
Response execute(BBApiRequest &request) &&
Empty response indicating successful initialization.
void msgpack(auto &&pack_fn)
bool operator==(const Response &) const =default
static constexpr const char * MSGPACK_SCHEMA_NAME
Initialize a new ClientIVC instance for incremental proof accumulation.
Response execute(BBApiRequest &request) &&
bool operator==(const ClientIvcStart &) const =default
MSGPACK_FIELDS(num_circuits)
static constexpr const char * MSGPACK_SCHEMA_NAME
Contains gate count information.
uint32_t circuit_size
Circuit size (total number of gates)
MSGPACK_FIELDS(acir_opcodes, circuit_size, gates_per_opcode)
static constexpr const char * MSGPACK_SCHEMA_NAME
bool operator==(const Response &) const =default
std::vector< uint32_t > gates_per_opcode
Optional: gate counts per opcode.
uint32_t acir_opcodes
Number of ACIR opcodes.
Get gate counts for a circuit.
MSGPACK_FIELDS(circuit, include_gates_per_opcode)
bool operator==(const ClientIvcStats &) const =default
Response execute(BBApiRequest &request) &&
bool include_gates_per_opcode
Whether to include detailed gate counts per opcode.
CircuitInputNoVK circuit
The circuit to analyze.
static constexpr const char * MSGPACK_SCHEMA_NAME
Contains the verification result.
bool operator==(const Response &) const =default
static constexpr const char * MSGPACK_SCHEMA_NAME
bool valid
True if the proof is valid.
Verify a ClientIVC proof with its verification key.
ClientIVC::Proof proof
The ClientIVC proof to verify.
MSGPACK_FIELDS(proof, vk)
bool operator==(const ClientIvcVerify &) const =default
Response execute(const BBApiRequest &request={}) &&
std::vector< uint8_t > vk
The verification key.
static constexpr const char * MSGPACK_SCHEMA_NAME