Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <proving_helper.hpp>
Public Types | |
using | Proof = AvmProver::Proof |
using | VkData = std::vector< uint8_t > |
Public Member Functions | |
AvmProvingHelper ()=default | |
std::pair< Proof, VkData > | prove (tracegen::TraceContainer &&trace) |
bool | check_circuit (tracegen::TraceContainer &&trace) |
bool | verify (const Proof &proof, const PublicInputs &pi, const VkData &vk_data) |
Static Public Member Functions | |
static std::shared_ptr< AvmVerifier::VerificationKey > | create_verification_key (const VkData &vk_data) |
Definition at line 11 of file proving_helper.hpp.
Definition at line 14 of file proving_helper.hpp.
using bb::avm2::AvmProvingHelper::VkData = std::vector<uint8_t> |
Definition at line 15 of file proving_helper.hpp.
|
default |
bool bb::avm2::AvmProvingHelper::check_circuit | ( | tracegen::TraceContainer && | trace | ) |
Definition at line 74 of file proving_helper.cpp.
|
static |
Definition at line 39 of file proving_helper.cpp.
std::pair< AvmProvingHelper::Proof, AvmProvingHelper::VkData > bb::avm2::AvmProvingHelper::prove | ( | tracegen::TraceContainer && | trace | ) |
Definition at line 58 of file proving_helper.cpp.
bool bb::avm2::AvmProvingHelper::verify | ( | const Proof & | proof, |
const PublicInputs & | pi, | ||
const VkData & | vk_data | ||
) |
Definition at line 102 of file proving_helper.cpp.