Barretenberg
The ZK-SNARK library at the core of Aztec
|
The verification key is responsible for storing the commitments to the precomputed (non-witness) polynomials used by the verifier. More...
#include <mega_flavor.hpp>
Public Types | |
using | MSGPACK_NO_STATIC_CHECK = std::true_type |
![]() | |
using | Commitment = typename PrecomputedCommitments::DataType |
![]() | |
using | DataType = Commitment |
Public Member Functions | |
VerificationKey ()=default | |
VerificationKey (const size_t circuit_size, const size_t num_public_inputs) | |
VerificationKey (const VerificationKey &vk)=default | |
void | set_metadata (const MetaData &metadata) |
VerificationKey (const PrecomputedData &precomputed) | |
MSGPACK_FIELDS (log_circuit_size, num_public_inputs, pub_inputs_offset, q_m, q_c, q_l, q_r, q_o, q_4, q_busread, q_lookup, q_arith, q_delta_range, q_elliptic, q_memory, q_nnf, q_poseidon2_external, q_poseidon2_internal, sigma_1, sigma_2, sigma_3, sigma_4, id_1, id_2, id_3, id_4, table_1, table_2, table_3, table_4, lagrange_first, lagrange_last, lagrange_ecc_op, databus_id) | |
![]() | |
bool | operator== (const NativeVerificationKey_ &) const=default |
virtual | ~NativeVerificationKey_ ()=default |
NativeVerificationKey_ ()=default | |
NativeVerificationKey_ (const size_t circuit_size, const size_t num_public_inputs) | |
virtual std::vector< typename Transcript::DataType > | to_field_elements () const |
Serialize verification key to field elements. | |
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 | VERIFICATION_KEY_LENGTH |
Additional Inherited Members | |
![]() | |
uint64_t | log_circuit_size |
uint64_t | num_public_inputs |
uint64_t | pub_inputs_offset |
The verification key is responsible for storing the commitments to the precomputed (non-witness) polynomials used by the verifier.
Definition at line 440 of file mega_flavor.hpp.
using bb::MegaFlavor::VerificationKey::MSGPACK_NO_STATIC_CHECK = std::true_type |
Definition at line 472 of file mega_flavor.hpp.
|
default |
|
inline |
Definition at line 448 of file mega_flavor.hpp.
|
default |
|
inline |
Definition at line 461 of file mega_flavor.hpp.
bb::MegaFlavor::VerificationKey::MSGPACK_FIELDS | ( | log_circuit_size | , |
num_public_inputs | , | ||
pub_inputs_offset | , | ||
q_m | , | ||
q_c | , | ||
q_l | , | ||
q_r | , | ||
q_o | , | ||
q_4 | , | ||
q_busread | , | ||
q_lookup | , | ||
q_arith | , | ||
q_delta_range | , | ||
q_elliptic | , | ||
q_memory | , | ||
q_nnf | , | ||
q_poseidon2_external | , | ||
q_poseidon2_internal | , | ||
sigma_1 | , | ||
sigma_2 | , | ||
sigma_3 | , | ||
sigma_4 | , | ||
id_1 | , | ||
id_2 | , | ||
id_3 | , | ||
id_4 | , | ||
table_1 | , | ||
table_2 | , | ||
table_3 | , | ||
table_4 | , | ||
lagrange_first | , | ||
lagrange_last | , | ||
lagrange_ecc_op | , | ||
databus_id | |||
) |
|
inline |
Definition at line 454 of file mega_flavor.hpp.
|
staticconstexpr |
Definition at line 443 of file mega_flavor.hpp.