Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <flavor.hpp>
Public Member Functions | |
VerificationKey ()=default | |
VerificationKey (const std::shared_ptr< ProvingKey > &proving_key) | |
VerificationKey (std::array< Commitment, NUM_PRECOMPUTED_COMMITMENTS > const &precomputed_cmts) | |
std::vector< fr > | to_field_elements () const override |
Serialize verification key to field elements. | |
fr | hash_through_transcript (const std::string &domain_separator, Transcript &transcript) const override |
Unimplemented because AVM VK is hardcoded so hash does not need to be computed. Rather, we just add the provided VK hash directly to the transcript. | |
![]() | |
bool | operator== (const NativeVerificationKey_ &) const=default |
virtual | ~NativeVerificationKey_ ()=default |
NativeVerificationKey_ ()=default | |
NativeVerificationKey_ (const size_t circuit_size, const size_t num_public_inputs) | |
fr | hash () const |
A model function to show how to compute the VK hash(without the Transcript abstracting things away) | |
virtual Transcript::DataType | hash_through_transcript (const std::string &domain_separator, Transcript &transcript) const |
Hashes the vk using the transcript's independent buffer and returns the hash. | |
![]() | |
bool | operator== (const PrecomputedEntities &other) const=default |
DEFINE_FLAVOR_MEMBERS (DataType, lagrange_first, lagrange_second, lagrange_last) | |
DataType | get_selectors () |
Static Public Attributes | |
static constexpr size_t | NUM_PRECOMPUTED_COMMITMENTS = NUM_PRECOMPUTED_ENTITIES |
Additional Inherited Members | |
![]() | |
using | Commitment = typename PrecomputedCommitments::DataType |
![]() | |
using | DataType = Commitment |
![]() | |
uint64_t | log_circuit_size |
uint64_t | num_public_inputs |
uint64_t | pub_inputs_offset |
Definition at line 240 of file flavor.hpp.
|
default |
|
inline |
Definition at line 246 of file flavor.hpp.
|
inline |
Definition at line 255 of file flavor.hpp.
|
inlineoverride |
Unimplemented because AVM VK is hardcoded so hash does not need to be computed. Rather, we just add the provided VK hash directly to the transcript.
Definition at line 268 of file flavor.hpp.
|
overridevirtual |
Serialize verification key to field elements.
Reimplemented from bb::NativeVerificationKey_< PrecomputedEntities< Commitment >, Transcript >.
Definition at line 106 of file flavor.cpp.
|
staticconstexpr |
Definition at line 242 of file flavor.hpp.