Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
get_bytecode.hpp
Go to the documentation of this file.
1#pragma once
2#include <filesystem>
3#include <iostream>
4#include <iterator>
5#include <string>
6#include <vector>
7
8// Parse JSON file and extract base64-encoded gzipped bytecode
9std::vector<uint8_t> get_bytecode_from_json(const std::string& json_path);
10
11// Decode base64-encoded gzipped bytecode string
12std::vector<uint8_t> decode_bytecode(const std::string& base64_bytecode);
13
14// Decompress gzipped file using libdeflate
15std::vector<uint8_t> gunzip(const std::string& path);
16
17// Get bytecode from various file formats
18std::vector<uint8_t> get_bytecode(const std::string& bytecode_path);
std::vector< uint8_t > get_bytecode_from_json(const std::string &json_path)
std::vector< uint8_t > decode_bytecode(const std::string &base64_bytecode)
std::vector< uint8_t > get_bytecode(const std::string &bytecode_path)
std::vector< uint8_t > gunzip(const std::string &path)