Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
partially_evaluated_multivariates.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
#pragma once
7
8
#include "
barretenberg/common/zip_view.hpp
"
9
#include "
barretenberg/polynomials/polynomial.hpp
"
10
11
namespace
bb
{
12
24
template
<
typename
AllEntitiesBase,
typename
ProverPolynomialsType,
typename
Polynomial>
25
class
PartiallyEvaluatedMultivariatesBase
:
public
AllEntitiesBase {
26
public
:
31
PartiallyEvaluatedMultivariatesBase
(
const
ProverPolynomialsType& full_polynomials,
size_t
circuit_size)
32
{
33
for
(
auto
[poly, full_poly] :
zip_view
(this->get_all(), full_polynomials.get_all())) {
34
// After the initial sumcheck round, the new size is CEIL(size/2).
35
size_t
desired_size = (full_poly.end_index() / 2) + (full_poly.end_index() % 2);
36
poly =
Polynomial
(desired_size, circuit_size / 2);
37
}
38
}
39
};
40
41
}
// namespace bb
bb::PartiallyEvaluatedMultivariatesBase
A container for storing the partially evaluated multivariates produced by sumcheck.
Definition
partially_evaluated_multivariates.hpp:25
bb::PartiallyEvaluatedMultivariatesBase::PartiallyEvaluatedMultivariatesBase
PartiallyEvaluatedMultivariatesBase(const ProverPolynomialsType &full_polynomials, size_t circuit_size)
Construct from full polynomials, allocating based on their actual sizes.
Definition
partially_evaluated_multivariates.hpp:31
bb::Polynomial
Structured polynomial class that represents the coefficients 'a' of a_0 + a_1 x .....
Definition
polynomial.hpp:75
zip_view
Definition
zip_view.hpp:166
bb
Entry point for Barretenberg command-line interface.
Definition
api.hpp:5
polynomial.hpp
zip_view.hpp
src
barretenberg
flavor
partially_evaluated_multivariates.hpp
Generated by
1.9.8