|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
Shared type definitions for the Barretenberg RPC API. More...
#include "barretenberg/chonk/chonk.hpp"#include "barretenberg/common/throw_or_abort.hpp"#include "barretenberg/dsl/acir_format/acir_format.hpp"#include "barretenberg/flavor/ultra_flavor.hpp"#include "barretenberg/flavor/ultra_keccak_flavor.hpp"#include "barretenberg/flavor/ultra_keccak_zk_flavor.hpp"#include "barretenberg/flavor/ultra_zk_flavor.hpp"#include "barretenberg/honk/execution_trace/mega_execution_trace.hpp"#include "barretenberg/stdlib/special_public_inputs/special_public_inputs.hpp"#include "barretenberg/stdlib_circuit_builders/ultra_circuit_builder.hpp"#include <cstdint>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| struct | bb::bbapi::CircuitInputNoVK |
| A circuit to be used in either ultrahonk or chonk verification key derivation. More... | |
| struct | bb::bbapi::CircuitInput |
| A circuit to be used in either ultrahonk or Chonk proving. More... | |
| struct | bb::bbapi::ProofSystemSettings |
| struct | bb::bbapi::BBApiRequest |
| struct | bb::bbapi::ErrorResponse |
| Error response returned when a command fails. More... | |
| struct | bb::bbapi::Shutdown |
| struct | bb::bbapi::Shutdown::Response |
Namespaces | |
| namespace | bb |
| Entry point for Barretenberg command-line interface. | |
| namespace | bb::bbapi |
Macros | |
| #define | BBAPI_ERROR(request, msg) |
| Macro to set error in BBApiRequest and return default response. | |
Enumerations | |
| enum class | bb::bbapi::VkPolicy { bb::bbapi::DEFAULT , bb::bbapi::CHECK , bb::bbapi::RECOMPUTE , bb::bbapi::REWRITE } |
| Policy for handling verification keys during IVC accumulation. More... | |
| enum class | bb::bbapi::OracleHashType { bb::bbapi::POSEIDON2 , bb::bbapi::KECCAK , bb::bbapi::STARKNET } |
| Convert oracle hash type string to enum for internal use. More... | |
Functions | |
| template<typename VK > | |
| void | bb::bbapi::validate_vk_size (const std::vector< uint8_t > &vk_bytes) |
| Validate verification key size before deserialization. | |
| OracleHashType | bb::bbapi::parse_oracle_hash_type (const std::string &type) |
| VkPolicy | bb::bbapi::parse_vk_policy (const std::string &policy) |
| Convert VK policy string to enum for internal use. | |
| template<typename Flavor > | |
| Flavor::Transcript::Proof | bb::bbapi::concatenate_proof (const std::vector< uint256_t > &public_inputs, const std::vector< uint256_t > &proof) |
| Concatenate public inputs and proof into a complete proof for verification. | |
| template<typename VK > | |
| std::vector< uint256_t > | bb::bbapi::vk_to_uint256_fields (const VK &vk) |
| Convert VK to uint256 field elements, handling flavor-specific return types. | |
| void | bb::bbapi::validate_rollup_settings (const ProofSystemSettings &settings) |
| Validate rollup circuit settings. | |
| template<typename Operation > | |
| auto | bb::bbapi::dispatch_by_settings (const ProofSystemSettings &settings, Operation &&operation) |
| Dispatch to the correct Flavor and IO type based on proof system settings. | |
Shared type definitions for the Barretenberg RPC API.
This file contains common data structures used across multiple bbapi modules, including circuit input types and proof system settings.
Definition in file bbapi_shared.hpp.
| #define BBAPI_ERROR | ( | request, | |
| msg | |||
| ) |
Macro to set error in BBApiRequest and return default response.
Definition at line 202 of file bbapi_shared.hpp.