Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
get_bytecode.cpp File Reference
#include "get_bytecode.hpp"
#include "barretenberg/common/throw_or_abort.hpp"
#include "base64.hpp"
#include <string>
#include <vector>
#include <fstream>
#include <libdeflate.h>
#include <nlohmann/json.hpp>
#include <stdexcept>

Go to the source code of this file.

Functions

std::vector< uint8_t > decode_bytecode (const std::string &base64_bytecode)
 
std::vector< uint8_t > get_bytecode_from_json (const std::string &json_path)
 
std::vector< uint8_t > gunzip (const std::string &path)
 
std::vector< uint8_t > get_bytecode (const std::string &bytecodePath)
 

Function Documentation

◆ decode_bytecode()

std::vector< uint8_t > decode_bytecode ( const std::string &  base64_bytecode)

Definition at line 51 of file get_bytecode.cpp.

◆ get_bytecode()

std::vector< uint8_t > get_bytecode ( const std::string &  bytecodePath)

Definition at line 91 of file get_bytecode.cpp.

◆ get_bytecode_from_json()

std::vector< uint8_t > get_bytecode_from_json ( const std::string &  json_path)

Definition at line 59 of file get_bytecode.cpp.

◆ gunzip()

std::vector< uint8_t > gunzip ( const std::string &  path)

Definition at line 76 of file get_bytecode.cpp.