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/version.hpp"
#include "barretenberg/serialize/msgpack.hpp"
#include "barretenberg/serialize/msgpack_impl.hpp"
#include <iomanip>
#include <sstream>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  bb::JsonOutput
 Serializable structure for 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.
 
template<typename T >
std::string bb::build_json_output (const std::vector< T > &fields, const std::string &file_kind, const API::Flags &flags, const std::string &vk_hash="")
 Build JSON output string using msgpack serialization.