Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
hypernova_verifier.hpp
Go to the documentation of this file.
1// === AUDIT STATUS ===
2// internal: { status: not started, auditors: [], date: YYYY-MM-DD }
3// external_1: { status: not started, auditors: [], date: YYYY-MM-DD }
4// external_2: { status: not started, auditors: [], date: YYYY-MM-DD }
5// =====================
6#pragma once
7
18
19namespace bb {
20
21template <typename Flavor_> class HypernovaFoldingVerifier {
22 public:
23 using Flavor = Flavor_;
24 using FF = Flavor::FF;
33 // Types conditionally assigned based on the Flavor being recursive
44
47
48 std::shared_ptr<Transcript> transcript;
49
50 HypernovaFoldingVerifier(const std::shared_ptr<Transcript>& transcript)
52
60 const Proof& proof);
61
70
71 private:
79 const Proof& proof);
80
85
91
95 template <size_t N> Commitment batch_mul(const RefArray<Commitment, N>& _points, const std::vector<FF>& scalars);
96};
97} // namespace bb
std::shared_ptr< Napi::ThreadSafeFunction > instance
Common transcript class for both parties. Stores the data for the current round, as well as the manif...
typename Curve::ScalarField FF
VerifierCommitments_< Commitment, VerificationKey > VerifierCommitments
typename G1::affine_element Commitment
curve::Grumpkin Curve
NativeTranscript Transcript
static constexpr size_t NUM_SHIFTED_ENTITIES
std::tuple< bool, bool, Accumulator > verify_folding_proof(const std::shared_ptr< typename HypernovaFoldingVerifier::VerifierInstance > &instance, const Proof &proof)
Verify folding proof. Return the new accumulator and the results of the two sumchecks.
SumcheckOutput< Flavor > sumcheck_on_incoming_instance(const std::shared_ptr< VerifierInstance > &instance, const Proof &proof)
Perform sumcheck on the incoming instance.
std::conditional_t< IsRecursiveFlavor< Flavor >, typename HypernovaRecursiveTypes::Proof, typename HypernovaNativeTypes::Proof > Proof
std::conditional_t< IsRecursiveFlavor< Flavor >, typename HypernovaRecursiveTypes::VerifierInstance, typename HypernovaNativeTypes::VerifierInstance > VerifierInstance
std::pair< bool, Accumulator > instance_to_accumulator(const std::shared_ptr< VerifierInstance > &instance, const Proof &proof)
Turn an instance into an accumulator by executing sumcheck.
SumcheckOutput< Flavor > MegaSumcheckOutput
static constexpr size_t NUM_UNSHIFTED_ENTITIES
std::conditional_t< IsRecursiveFlavor< Flavor >, typename HypernovaRecursiveTypes::MultilinearBatchingVerifier, typename HypernovaNativeTypes::MultilinearBatchingVerifier > MultilinearBatchingVerifier
Commitment batch_mul(const RefArray< Commitment, N > &_points, const std::vector< FF > &scalars)
Utility to perform batch mul of commitments.
Accumulator sumcheck_output_to_accumulator(MegaSumcheckOutput &sumcheck_output, const std::shared_ptr< VerifierInstance > &instance)
Convert the output of the sumcheck run on the incoming instance into an accumulator.
std::shared_ptr< Transcript > transcript
MultilinearBatchingVerifierClaim< Curve > Accumulator
std::pair< std::vector< FF >, std::vector< FF > > get_batching_challenges()
Generate the challenges required to batch the incoming instance with the accumulator.
HypernovaFoldingVerifier(const std::shared_ptr< Transcript > &transcript)
bb::MultilinearBatchingVerifier< MultilinearBatchingRecursiveFlavor > MultilinearBatchingVerifier
Definition types.hpp:32
stdlib::recursion::honk::RecursiveVerifierInstance_< MegaRecursiveFlavor_< MegaCircuitBuilder > > VerifierInstance
Definition types.hpp:30
stdlib::Proof< MegaCircuitBuilder > Proof
Definition types.hpp:31
static constexpr size_t NUM_SHIFTED_ENTITIES
static constexpr size_t NUM_UNSHIFTED_ENTITIES
Verifier class for all the presumcheck rounds, which are shared between the folding verifier and ultr...
A template class for a reference array. Behaves as if std::array<T&, N> was possible.
Definition ref_array.hpp:22
Implementation of the sumcheck Verifier for statements of the form for multilinear polynomials .
Definition sumcheck.hpp:786
The VerifierInstance encapsulates all the necessary information for a Mega Honk Verifier to verify a ...
Base class templates for structures that contain data parameterized by the fundamental polynomials of...
Entry point for Barretenberg command-line interface.
Definition api.hpp:5
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
Contains the evaluations of multilinear polynomials at the challenge point . These are computed by S...