Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::PrivateExecutionStepRaw Struct Reference

This is the msgpack encoding of the objects returned by the following typescript: const stepToStruct = (step: PrivateExecutionStep) => { return { bytecode: step.bytecode, witness: serializeWitness(step.witness), vk: step.vk, functionName: step.functionName }; }; await fs.writeFile(path, encode(executionSteps.map(stepToStruct))); See format notes below. More...

#include <private_execution_steps.hpp>

Public Member Functions

void msgpack (auto pack_fn)
 
void self_decompress ()
 

Static Public Member Functions

static std::vector< PrivateExecutionStepRawload_and_decompress (const std::filesystem::path &input_path)
 
static std::vector< PrivateExecutionStepRawload (const std::filesystem::path &input_path)
 
static std::vector< PrivateExecutionStepRawparse_uncompressed (const std::vector< uint8_t > &buf)
 
static void compress_and_save (std::vector< PrivateExecutionStepRaw > &&steps, const std::filesystem::path &output_path)
 

Public Attributes

std::vector< uint8_t > bytecode
 
std::vector< uint8_t > witness
 
std::vector< uint8_t > vk
 
std::string function_name
 

Detailed Description

This is the msgpack encoding of the objects returned by the following typescript: const stepToStruct = (step: PrivateExecutionStep) => { return { bytecode: step.bytecode, witness: serializeWitness(step.witness), vk: step.vk, functionName: step.functionName }; }; await fs.writeFile(path, encode(executionSteps.map(stepToStruct))); See format notes below.

Definition at line 23 of file private_execution_steps.hpp.

Member Function Documentation

◆ compress_and_save()

void bb::PrivateExecutionStepRaw::compress_and_save ( std::vector< PrivateExecutionStepRaw > &&  steps,
const std::filesystem::path &  output_path 
)
static

Definition at line 169 of file private_execution_steps.cpp.

◆ load()

std::vector< PrivateExecutionStepRaw > bb::PrivateExecutionStepRaw::load ( const std::filesystem::path &  input_path)
static

Definition at line 77 of file private_execution_steps.cpp.

◆ load_and_decompress()

std::vector< PrivateExecutionStepRaw > bb::PrivateExecutionStepRaw::load_and_decompress ( const std::filesystem::path &  input_path)
static

Definition at line 91 of file private_execution_steps.cpp.

◆ msgpack()

void bb::PrivateExecutionStepRaw::msgpack ( auto  pack_fn)
inline

Definition at line 34 of file private_execution_steps.hpp.

◆ parse_uncompressed()

std::vector< PrivateExecutionStepRaw > bb::PrivateExecutionStepRaw::parse_uncompressed ( const std::vector< uint8_t > &  buf)
static

Definition at line 103 of file private_execution_steps.cpp.

◆ self_decompress()

void bb::PrivateExecutionStepRaw::self_decompress ( )

Definition at line 84 of file private_execution_steps.cpp.

Member Data Documentation

◆ bytecode

std::vector<uint8_t> bb::PrivateExecutionStepRaw::bytecode

Definition at line 25 of file private_execution_steps.hpp.

◆ function_name

std::string bb::PrivateExecutionStepRaw::function_name

Definition at line 31 of file private_execution_steps.hpp.

◆ vk

std::vector<uint8_t> bb::PrivateExecutionStepRaw::vk

Definition at line 29 of file private_execution_steps.hpp.

◆ witness

std::vector<uint8_t> bb::PrivateExecutionStepRaw::witness

Definition at line 27 of file private_execution_steps.hpp.


The documentation for this struct was generated from the following files: