|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include "api_avm.hpp"#include <filesystem>#include "barretenberg/api/api_avm.hpp"#include "barretenberg/api/file_io.hpp"#include "barretenberg/common/map.hpp"#include "barretenberg/vm2/avm_api.hpp"#include "barretenberg/vm2/common/constants.hpp"#include "barretenberg/vm2/tooling/stats.hpp"Go to the source code of this file.
Namespaces | |
| namespace | bb |
| Entry point for Barretenberg command-line interface. | |
Functions | |
| void | bb::avm_prove (const std::filesystem::path &inputs_path, const std::filesystem::path &output_path) |
| Writes an avm proof to a file. | |
| void | bb::avm_check_circuit (const std::filesystem::path &inputs_path) |
| Stub - throws runtime error if called. | |
| bool | bb::avm_verify (const std::filesystem::path &proof_path, const std::filesystem::path &public_inputs_path) |
| Verifies an avm proof and writes the result to stdout. | |
| void | bb::avm_simulate (const std::filesystem::path &inputs_path) |
| Simulates an public transaction. | |
| void | bb::avm_write_verification_key (const std::filesystem::path &output_path) |
| Writes an avm (incomplete) verification key to a file. | |
| AvmProveResult | bb::avm_prove_from_bytes (std::vector< uint8_t > inputs) |
| Prove an AVM transaction from serialized inputs (msgpack bytes). Callers that need to verify the proof should call avm_verify_from_bytes separately. | |
| bool | bb::avm_verify_from_bytes (std::vector< bb::fr > proof, std::vector< uint8_t > public_inputs) |
| Verify an AVM proof from serialized data. | |
| bool | bb::avm_check_circuit_from_bytes (std::vector< uint8_t > inputs) |
| Check the AVM circuit from serialized inputs (msgpack bytes). | |