Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bbapi_execute.hpp
Go to the documentation of this file.
1#pragma once
2
7#include <vector>
8
9namespace bb::bbapi {
10
26
42
50inline CommandResponse execute(BBApiRequest& request, Command&& command)
51{
52 return std::move(command).visit([&request](auto&& cmd) -> CommandResponse {
53 using CmdType = std::decay_t<decltype(cmd)>;
54 return std::forward<CmdType>(cmd).execute(request);
55 });
56}
57
58// The msgpack scheme is an ad-hoc format that allows for cbind/compiler.ts to
59// generate TypeScript bindings for the API.
60std::string get_msgpack_schema_as_json();
61
62} // namespace bb::bbapi
ClientIVC-specific command definitions for the Barretenberg RPC API.
Shared type definitions for the Barretenberg RPC API.
UltraHonk-specific command definitions for the Barretenberg RPC API.
A wrapper around std::variant that provides msgpack serialization based on type names.
decltype(auto) visit(Visitor &&vis) &&
std::string get_msgpack_schema_as_json()
CommandResponse execute(BBApiRequest &request, Command &&command)
Executes a command by visiting a variant of all possible commands.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
Contains proof and public inputs. Both are given as vectors of fields. To be used for verification....
Represents a request to generate a proof. Currently, UltraHonk is the only proving system supported b...
Consolidated command for retrieving circuit information. Combines gate count, circuit size,...
Verify a proof against a verification key and public inputs.
Command to generate Solidity verifier contract.
Empty response indicating successful circuit accumulation.
Accumulate the previously loaded circuit into the IVC proof.
Verify that a precomputed verification key matches the circuit.
Contains the computed IVC verification key.
Compute IVC verification key for the complete proof.
Contains the computed verification key in multiple formats.
Compute standalone verification key for a circuit.
Empty response indicating successful circuit loading.
Load a circuit into the ClientIVC instance for accumulation.
Contains the generated IVC proof.
Generate a proof for all accumulated circuits.
Empty response indicating successful initialization.
Initialize a new ClientIVC instance for incremental proof accumulation.
Contains gate count information.
Get gate counts for a circuit.
Contains the verification result.
Verify a ClientIVC proof with its verification key.
Convert a verification key to field elements representation. WORKTODO(bbapi): this should become most...