Barretenberg
The ZK-SNARK library at the core of Aztec
|
The verification key is responsible for storing the commitments to the precomputed (non-witnessk) polynomials used by the verifier. More...
#include <ultra_rollup_recursive_flavor.hpp>
Public Types | |
using | NativeVerificationKey = NativeFlavor::VerificationKey |
![]() | |
using | Builder = BuilderType |
using | FF = stdlib::field_t< Builder > |
using | Commitment = typename PrecomputedCommitments::DataType |
using | Transcript = BaseTranscript< stdlib::recursion::honk::StdlibTranscriptParams< Builder > > |
Public Member Functions | |
VerificationKey (CircuitBuilder *builder, const std::shared_ptr< NativeVerificationKey > &native_key) | |
Construct a new Verification Key with stdlib types from a provided native verification key. | |
VerificationKey (CircuitBuilder &builder, std::span< FF > elements) | |
Deserialize a verification key from a vector of field elements. | |
![]() | |
bool | operator== (const StdlibVerificationKey_ &) const=default |
virtual | ~StdlibVerificationKey_ ()=default |
StdlibVerificationKey_ ()=default | |
StdlibVerificationKey_ (const size_t circuit_size, const size_t num_public_inputs) | |
virtual std::vector< FF > | to_field_elements () const |
Serialize verification key to field elements. | |
FF | hash (Builder &builder) |
A model function to show how to compute the VK hash (without the Transcript abstracting things away). | |
virtual FF | hash_through_transcript (const std::string &domain_separator, Transcript &transcript) const |
Hashes the vk using the transcript's independent buffer and returns the hash. | |
Static Public Member Functions | |
static VerificationKey | from_witness_indices (CircuitBuilder &builder, const std::span< const uint32_t > witness_indices) |
Construct a VerificationKey from a set of corresponding witness indices. | |
Additional Inherited Members | |
![]() | |
FF | log_circuit_size |
FF | num_public_inputs |
FF | pub_inputs_offset |
The verification key is responsible for storing the commitments to the precomputed (non-witnessk) polynomials used by the verifier.
Definition at line 60 of file ultra_rollup_recursive_flavor.hpp.
using bb::UltraRollupRecursiveFlavor_< BuilderType >::VerificationKey::NativeVerificationKey = NativeFlavor::VerificationKey |
Definition at line 63 of file ultra_rollup_recursive_flavor.hpp.
|
inline |
Construct a new Verification Key with stdlib types from a provided native verification key.
builder | |
native_key | Native verification key from which to extract the precomputed commitments |
Definition at line 71 of file ultra_rollup_recursive_flavor.hpp.
|
inline |
Deserialize a verification key from a vector of field elements.
builder | |
elements |
Definition at line 89 of file ultra_rollup_recursive_flavor.hpp.
|
inlinestatic |
Construct a VerificationKey from a set of corresponding witness indices.
builder | |
witness_indices |
Definition at line 111 of file ultra_rollup_recursive_flavor.hpp.