Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <avm_api.hpp>
Public Types | |
using | AvmProof = AvmProvingHelper::Proof |
using | AvmVerificationKey = std::vector< uint8_t > |
using | ProvingInputs = AvmProvingInputs |
Public Member Functions | |
AvmAPI ()=default | |
std::pair< AvmProof, AvmVerificationKey > | prove (const ProvingInputs &inputs) |
bool | check_circuit (const ProvingInputs &inputs) |
bool | verify (const AvmProof &proof, const PublicInputs &pi, const AvmVerificationKey &vk_data) |
Definition at line 10 of file avm_api.hpp.
Definition at line 12 of file avm_api.hpp.
using bb::avm2::AvmAPI::AvmVerificationKey = std::vector<uint8_t> |
Definition at line 13 of file avm_api.hpp.
Definition at line 14 of file avm_api.hpp.
|
default |
bool bb::avm2::AvmAPI::check_circuit | ( | const ProvingInputs & | inputs | ) |
Definition at line 35 of file avm_api.cpp.
std::pair< AvmAPI::AvmProof, AvmAPI::AvmVerificationKey > bb::avm2::AvmAPI::prove | ( | const ProvingInputs & | inputs | ) |
Definition at line 13 of file avm_api.cpp.
bool bb::avm2::AvmAPI::verify | ( | const AvmProof & | proof, |
const PublicInputs & | pi, | ||
const AvmVerificationKey & | vk_data | ||
) |
Definition at line 64 of file avm_api.cpp.