Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
translator_shiftable_first_coeff_zero_short_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
10
11namespace bb {
12
14 public:
15 using FF = FF_;
16
17 // 1 + polynomial degree of this relation
18 // degree(lagrange_first * ordered_range_constraints_i) = 2, so length = 3
19 static constexpr size_t RELATION_LENGTH = 3;
20
21 static constexpr std::array<size_t, 5> SUBRELATION_PARTIAL_LENGTHS{
22 3, // ordered_range_constraints_0 starts at 0 subrelation
23 3, // ordered_range_constraints_1 starts at 0 subrelation
24 3, // ordered_range_constraints_2 starts at 0 subrelation
25 3, // ordered_range_constraints_3 starts at 0 subrelation
26 3 // ordered_range_constraints_4 starts at 0 subrelation
27 };
28
37 template <typename AllEntities> static bool skip(const AllEntities& in) { return in.lagrange_first.is_zero(); }
38
51 template <typename ContainerOverSubrelations, typename AllEntities, typename Parameters>
52 static void accumulate(ContainerOverSubrelations& accumulators,
53 const AllEntities& in,
54 const Parameters&,
55 const FF& scaling_factor);
56};
57
58template <typename FF>
60
61} // namespace bb
A wrapper for Relations to expose methods used by the Sumcheck prover or verifier to add the contribu...
static bool skip(const AllEntities &in)
Returns true if the contribution from all subrelations for the provided inputs is identically zero.
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