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
8
#include "
barretenberg/relations/relation_types.hpp
"
9
10
namespace
bb
{
11
12
template
<
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
51
template
<
typename
FF>
52
using
TranslatorShiftableFirstCoeffZeroRelation
=
Relation<TranslatorShiftableFirstCoeffZeroRelationImpl<FF>
>;
53
54
}
// namespace bb
bb::MegaFlavor_Generated::AllEntities
Definition
mega_flavor_generated.hpp:277
bb::Relation
A wrapper for Relations to expose methods used by the Sumcheck prover or verifier to add the contribu...
Definition
relation_types.hpp:129
bb::TranslatorShiftableFirstCoeffZeroRelationImpl
Definition
translator_shiftable_first_coeff_zero_relation.hpp:12
bb::TranslatorShiftableFirstCoeffZeroRelationImpl::accumulate
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.
Definition
translator_shiftable_first_coeff_zero_relation_impl.hpp:22
bb::TranslatorShiftableFirstCoeffZeroRelationImpl::RELATION_LENGTH
static constexpr size_t RELATION_LENGTH
Definition
translator_shiftable_first_coeff_zero_relation.hpp:18
bb::TranslatorShiftableFirstCoeffZeroRelationImpl::FF
FF_ FF
Definition
translator_shiftable_first_coeff_zero_relation.hpp:14
bb::TranslatorShiftableFirstCoeffZeroRelationImpl::SUBRELATION_PARTIAL_LENGTHS
static constexpr std::array< size_t, 5 > SUBRELATION_PARTIAL_LENGTHS
Definition
translator_shiftable_first_coeff_zero_relation.hpp:20
bb
Entry point for Barretenberg command-line interface.
Definition
api.hpp:5
relation_types.hpp
bb::field< bb::Bn254FrParams >
src
barretenberg
relations
translator_vm
translator_shiftable_first_coeff_zero_relation.hpp
Generated by
1.9.8