Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
multilinear_batching_recursive_flavor.hpp
Go to the documentation of this file.
1// === AUDIT STATUS ===
2// internal: { status: Complete, auditors: [Sergei], commit: }
3// external_1: { status: not started, auditors: [], commit: }
4// external_2: { status: not started, auditors: [], commit: }
5// =====================
6
7#pragma once
8
11
12namespace bb {
13
15 public:
19 using PCS = KZG<Curve>;
20 using FF = typename Curve::ScalarField;
21 using Commitment = typename Curve::Element;
23
24 // An upper bound on the size of the MultilinearBatching-circuits. `CONST_FOLDING_LOG_N` bounds the log circuit
25 // sizes in the Chonk context.
26 static constexpr size_t VIRTUAL_LOG_N = NativeFlavor::VIRTUAL_LOG_N;
27 // Indicates that this flavor runs with non-ZK Sumcheck.
28 static constexpr bool HasZK = NativeFlavor::HasZK;
29 // Indicates that this flavor runs with Multilinear Batching.
31 // To achieve fixed proof size and that the recursive verifier circuit is constant, we are using padding in Sumcheck
32 // and Shplemini
33 static constexpr bool USE_PADDING = NativeFlavor::USE_PADDING;
34 // The number of multivariate polynomials on which a sumcheck prover sumcheck operates (including shifts). We often
35 // need containers of this size to hold related data, so we choose a name more agnostic than `NUM_POLYNOMIALS`.
37
38 // The total number of witness entities not including shifts.
40 // Number of accumulator evaluations sent in the proof (non_shifted + shifted)
42
43 // define the tuple of Relations that comprise the Sumcheck relation
45
47
48 // BATCHED_RELATION_PARTIAL_LENGTH = algebraic degree of sumcheck relation *after* multiplying by the `pow_zeta`
49 // random polynomial e.g. For \sum(x) [A(x) * B(x) + C(x)] * PowZeta(X), relation length = 2 and random relation
50 // length = 3
53
54 // A challenge whose powers are used to batch subrelation contributions during Sumcheck
57
59 public:
61 using Base::Base;
62 };
63
65};
66
67} // namespace bb
Common transcript class for both parties. Stores the data for the current round, as well as the manif...
A base class labelling all entities (for instance, all of the polynomials used by the prover during s...
static constexpr size_t NUM_ACCUMULATOR_EVALUATIONS
static constexpr size_t BATCHED_RELATION_PARTIAL_LENGTH
static constexpr size_t MAX_PARTIAL_RELATION_LENGTH
std::tuple< bb::MultilinearBatchingAccumulatorRelation< FF >, bb::MultilinearBatchingInstanceRelation< FF > > Relations_
Entry point for Barretenberg command-line interface.
Definition api.hpp:5
MegaCircuitBuilder_< field< Bn254FrParams > > MegaCircuitBuilder
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
field_t< CircuitBuilder > ScalarField
Definition bn254.hpp:33