Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
json_output.hpp File Reference
#include "barretenberg/api/api.hpp"
#include "barretenberg/common/throw_or_abort.hpp"
#include "barretenberg/common/version.hpp"
#include "barretenberg/numeric/uint256/uint256.hpp"
#include "barretenberg/serialize/msgpack.hpp"
#include "barretenberg/serialize/msgpack_impl.hpp"
#include <iomanip>
#include <optional>
#include <sstream>
#include <string>
#include <vector>
#include <nlohmann/json.hpp>

Go to the source code of this file.

Classes

struct  bb::VkJson
 Serializable structure for VK JSON output (msgpack-compatible) More...
 
struct  bb::ProofJson
 Serializable structure for proof JSON output (msgpack-compatible) More...
 
struct  bb::PublicInputsJson
 Serializable structure for public inputs JSON output (msgpack-compatible) More...
 

Namespaces

namespace  bb
 Entry point for Barretenberg command-line interface.
 

Functions

std::string bb::bytes_to_hex_string (const std::vector< uint8_t > &bytes)
 Convert bytes to a hex string with 0x prefix.
 
std::optional< nlohmann::json > bb::try_parse_json (const std::vector< uint8_t > &content)
 Try to parse file content as JSON.
 
uint256_t bb::hex_string_to_uint256 (const std::string &hex_str)
 Parse a hex string (with or without 0x prefix) to uint256_t.