Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
translator_recursive_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
7#pragma once
17
18namespace bb {
20 public:
22 using FF = Flavor::FF;
23 using NativeBF = Flavor::Curve::BaseFieldNative;
25 using BF = Flavor::BF;
36
37 std::shared_ptr<VerificationKey> key;
39 std::shared_ptr<Transcript> transcript;
40 VerifierCommitmentKey pcs_verification_key; // can remove maybe hopefully
41 std::array<Commitment, TranslatorFlavor::NUM_OP_QUEUE_WIRES> op_queue_commitments;
43
45
47 const std::shared_ptr<NativeVerificationKey>& native_verifier_key,
48 const std::shared_ptr<Transcript>& transcript);
49
50 void put_translation_data_in_relation_parameters(const BF& evaluation_input_x,
51 const BF& batching_challenge_v,
52 const BF& accumulated_result);
53
54 [[nodiscard("Pairing points should be accumulated")]] PairingPoints verify_proof(const HonkProof& proof,
55 const BF& evaluation_input_x,
56 const BF& batching_challenge_v);
57 [[nodiscard("Pairing points should be accumulated")]] PairingPoints verify_proof(const StdlibProof& proof,
58 const BF& evaluation_input_x,
59 const BF& batching_challenge_v);
60
61 void verify_translation(const TranslationEvaluations& translation_evaluations,
62 const BF& translation_masking_term_eval);
63
69 const std::array<Commitment, TranslatorFlavor::NUM_OP_QUEUE_WIRES>& merge_commitments);
70};
71} // namespace bb
Common transcript class for both parties. Stores the data for the current round, as well as the manif...
The verification key is responsible for storing the commitments to the precomputed (non-witnessk) pol...
The verification key is responsible for storing the commitments to the precomputed (non-witnessk) pol...
The recursive counterpart of the native Translator flavor.
bb::BaseTranscript< bb::stdlib::recursion::honk::StdlibTranscriptParams< CircuitBuilder > > Transcript
NativeFlavor::VerificationKey NativeVerificationKey
bb::VerifierCommitmentKey< NativeFlavor::Curve > VerifierCommitmentKey
std::array< Commitment, TranslatorFlavor::NUM_OP_QUEUE_WIRES > op_queue_commitments
std::shared_ptr< VerificationKey > key
void verify_translation(const TranslationEvaluations &translation_evaluations, const BF &translation_masking_term_eval)
void put_translation_data_in_relation_parameters(const BF &evaluation_input_x, const BF &batching_challenge_v, const BF &accumulated_result)
PairingPoints verify_proof(const HonkProof &proof, const BF &evaluation_input_x, const BF &batching_challenge_v)
Creates a circuit that executes the Translator verifier algorithm up to the final pairing check.
void verify_consistency_with_final_merge(const std::array< Commitment, TranslatorFlavor::NUM_OP_QUEUE_WIRES > &merge_commitments)
Ensure translator verifier and last round of merge verification (operating with the final table) rece...
Representation of the Grumpkin Verifier Commitment Key inside a bn254 circuit.
A simple wrapper around a vector of stdlib field elements representing a proof.
Definition proof.hpp:19
Entry point for Barretenberg command-line interface.
std::vector< fr > HonkProof
Definition proof.hpp:15
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
Stores the evaluations of op, Px, Py, z1, and z2 computed by the ECCVM Prover. These evaluations are ...