Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
translator_shiftable_first_coeff_zero_relation.hpp
Go to the documentation of this file.
1// === AUDIT STATUS ===
2// internal: { status: Planned, auditors: [], commit: }
3// external_1: { status: not started, auditors: [], commit: }
4// external_2: { status: not started, auditors: [], commit: }
5// =====================
6
7#pragma once
9
10namespace bb {
11
12template <typename FF_> class TranslatorShiftableFirstCoeffZeroRelationImpl {
13 public:
14 using FF = FF_;
15
16 // 1 + polynomial degree of this relation
17 // degree(lagrange_first * ordered_range_constraints_i) = 2, so length = 3
18 static constexpr size_t RELATION_LENGTH = 3;
19
20 static constexpr std::array<size_t, 5> SUBRELATION_PARTIAL_LENGTHS{
21 3, // ordered_range_constraints_0 starts at 0 subrelation
22 3, // ordered_range_constraints_1 starts at 0 subrelation
23 3, // ordered_range_constraints_2 starts at 0 subrelation
24 3, // ordered_range_constraints_3 starts at 0 subrelation
25 3 // ordered_range_constraints_4 starts at 0 subrelation
26 };
27
44 template <typename ContainerOverSubrelations, typename AllEntities, typename Parameters>
45 static void accumulate(ContainerOverSubrelations& accumulators,
46 const AllEntities& in,
47 const Parameters&,
48 const FF& scaling_factor);
49};
50
51template <typename FF>
53
54} // namespace bb
A wrapper for Relations to expose methods used by the Sumcheck prover or verifier to add the contribu...
static void accumulate(ContainerOverSubrelations &accumulators, const AllEntities &in, const Parameters &, const FF &scaling_factor)
Anchors the first coefficient of the shiftable ordered_range_constraints polynomials to zero.
Entry point for Barretenberg command-line interface.
Definition api.hpp:5