|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
Batch merge prover. More...
#include <batch_merge_prover.hpp>
Public Types | |
| using | MergeProof = std::vector< FF > |
Public Member Functions | |
| BatchMergeProver (const std::shared_ptr< ECCOpQueue > &op_queue, size_t max_subtables) | |
| MergeProof | construct_proof () |
| Construct the batch merge proof. | |
Public Attributes | |
| CommitmentKey | pcs_commitment_key |
| std::shared_ptr< Transcript > | transcript |
Static Public Attributes | |
| static constexpr size_t | NUM_WIRES = MegaExecutionTraceBlocks::NUM_WIRES |
Protected Types | |
| using | Curve = curve::BN254 |
| using | FF = Curve::ScalarField |
| using | Commitment = Curve::AffineElement |
| using | Polynomial = bb::Polynomial< FF > |
| using | CommitmentKey = bb::CommitmentKey< Curve > |
| using | PCS = KZG< Curve > |
| using | OpeningClaim = ProverOpeningClaim< Curve > |
| using | Transcript = NativeTranscript |
| using | ShplonkProver = ShplonkProver_< Curve > |
Static Protected Member Functions | |
| static Polynomial | compute_degree_check_polynomial (const std::vector< Polynomial > &flattened_columns, const std::vector< FF > °ree_check_challenges, const size_t max_size) |
Protected Attributes | |
| std::shared_ptr< ECCOpQueue > | op_queue |
| size_t | max_subtables |
Batch merge prover.
This prover proves that the full merged table T is the correct concatenation of all N accumulated subtables C_0, ..., C_{N-1} (padded to MAX_SUBTABLES M).
Definition at line 25 of file batch_merge_prover.hpp.
|
protected |
Definition at line 29 of file batch_merge_prover.hpp.
|
protected |
Definition at line 31 of file batch_merge_prover.hpp.
|
protected |
Definition at line 27 of file batch_merge_prover.hpp.
|
protected |
Definition at line 28 of file batch_merge_prover.hpp.
| using bb::BatchMergeProver::MergeProof = std::vector<FF> |
Definition at line 38 of file batch_merge_prover.hpp.
|
protected |
Definition at line 33 of file batch_merge_prover.hpp.
|
protected |
Definition at line 32 of file batch_merge_prover.hpp.
|
protected |
Definition at line 30 of file batch_merge_prover.hpp.
|
protected |
Definition at line 35 of file batch_merge_prover.hpp.
|
protected |
Definition at line 34 of file batch_merge_prover.hpp.
|
explicit |
| op_queue | The ECC op queue containing all accumulated subtables (N subtables, in append order). |
| transcript | Shared prover transcript. |
| max_subtables | M: the fixed maximum number of subtables (CHONK_MAX_ACCUMULATION_STEPS). |
Definition at line 14 of file batch_merge_prover.cpp.
|
staticprotected |
Definition at line 23 of file batch_merge_prover.cpp.
| BatchMergeProver::MergeProof bb::BatchMergeProver::construct_proof | ( | ) |
Construct the batch merge proof.
Proves that the full merged table T is the correct concatenation of all N subtables C_0, ..., C_{N-1} stored in the op_queue in append order (C_0 oldest, C_{N-1} most recently merged) together with an additional zero-knowledge commitment C_zk (prepended at the beginning).
Definition at line 52 of file batch_merge_prover.cpp.
|
protected |
Definition at line 67 of file batch_merge_prover.hpp.
|
staticconstexpr |
Definition at line 40 of file batch_merge_prover.hpp.
|
protected |
Definition at line 66 of file batch_merge_prover.hpp.
| CommitmentKey bb::BatchMergeProver::pcs_commitment_key |
Definition at line 60 of file batch_merge_prover.hpp.
| std::shared_ptr<Transcript> bb::BatchMergeProver::transcript |
Definition at line 63 of file batch_merge_prover.hpp.