Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
verifier_instance.hpp
Go to the documentation of this file.
1// === AUDIT STATUS ===
2// internal: { status: Completed, auditors: [Sergei], commit: }
3// external_1: { status: not started, auditors: [], commit: }
4// external_2: { status: not started, auditors: [], commit: }
5// =====================
6
7#pragma once
10
11namespace bb {
18template <typename Flavor_> class VerifierInstance_ {
19 public:
20 using Flavor = Flavor_;
21 using FF = typename Flavor::FF;
24 using WitnessCommitments = typename Flavor::WitnessCommitments;
25 using VKAndHash = typename Flavor::VKAndHash;
26
27 std::shared_ptr<VKAndHash> vk_and_hash;
28
29 std::vector<FF> public_inputs;
30
31 FF alpha; // challenge whose powers batch subrelation contributions during Sumcheck
33 std::vector<FF> gate_challenges;
34
36
37 Commitment gemini_masking_commitment; // ZK only: Gemini masking polynomial commitment
38
39 explicit VerifierInstance_(std::shared_ptr<VKAndHash> vk_and_hash)
41 {}
42
43 std::shared_ptr<VerificationKey> get_vk() const { return vk_and_hash->vk; }
44};
45
46} // namespace bb
typename Curve::ScalarField FF
typename G1::affine_element Commitment
FixedVKAndHash_< PrecomputedEntities< Commitment >, BF, ECCVMHardcodedVKAndHash > VerificationKey
The verification key stores commitments to the precomputed polynomials used by the verifier.
The VerifierInstance encapsulates all the necessary information for a Honk Verifier to verify a proof...
typename Flavor::WitnessCommitments WitnessCommitments
std::vector< FF > public_inputs
std::vector< FF > gate_challenges
typename Flavor::FF FF
WitnessCommitments witness_commitments
typename Flavor::VKAndHash VKAndHash
std::shared_ptr< VerificationKey > get_vk() const
typename Flavor::Commitment Commitment
RelationParameters< FF > relation_parameters
std::shared_ptr< VKAndHash > vk_and_hash
VerifierInstance_(std::shared_ptr< VKAndHash > vk_and_hash)
typename Flavor::VerificationKey VerificationKey
Base class templates shared across Honk flavors.
Entry point for Barretenberg command-line interface.
Definition api.hpp:5
Container for parameters used by the grand product (permutation, lookup) Honk relations.