|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
Constructs random polynomials, computes commitments and corresponding evaluations. More...
#include <mock_witness_generator.hpp>
Classes | |
| struct | ClaimData |
Public Types | |
| using | CommitmentKey = bb::CommitmentKey< Curve > |
| using | Fr = typename Curve::ScalarField |
| using | Commitment = typename Curve::AffineElement |
| using | Polynomial = bb::Polynomial< Fr > |
| using | PolynomialBatcher = bb::GeminiProver_< Curve >::PolynomialBatcher |
| using | ClaimBatcher = ClaimBatcher_< Curve > |
| using | ClaimBatch = ClaimBatcher::Batch |
Public Member Functions | |
| MockClaimGenerator (const size_t poly_size, const size_t num_polynomials, const size_t num_to_be_shifted, const std::vector< Fr > &mle_opening_point, const CommitmentKey &commitment_key) | |
| Construct claim data for a set of random polynomials with the specified type. | |
| MockClaimGenerator (const size_t n, const size_t num_zero_polynomials) | |
| MockClaimGenerator (const size_t poly_size, const std::vector< Polynomial > custom_unshifted, const std::vector< Fr > &custom_unshifted_evals, const CommitmentKey &commitment_key) | |
| template<typename Flavor > | |
| void | compute_sumcheck_opening_data (const size_t log_n, const size_t sumcheck_univariate_length, std::vector< Fr > &challenge, const CommitmentKey &ck) |
Public Attributes | |
| CommitmentKey | ck |
| ClaimData | unshifted |
| ClaimData | to_be_shifted |
| std::vector< Fr > | const_size_mle_opening_point |
| PolynomialBatcher | polynomial_batcher |
| ClaimBatcher | claim_batcher |
| std::vector< bb::Polynomial< Fr > > | round_univariates |
| std::vector< Commitment > | sumcheck_commitments |
| std::vector< std::array< Fr, 3 > > | sumcheck_evaluations |
Constructs random polynomials, computes commitments and corresponding evaluations.
| Curve |
Definition at line 17 of file mock_witness_generator.hpp.
| using bb::MockClaimGenerator< Curve >::ClaimBatch = ClaimBatcher::Batch |
Definition at line 25 of file mock_witness_generator.hpp.
| using bb::MockClaimGenerator< Curve >::ClaimBatcher = ClaimBatcher_<Curve> |
Definition at line 24 of file mock_witness_generator.hpp.
| using bb::MockClaimGenerator< Curve >::Commitment = typename Curve::AffineElement |
Definition at line 21 of file mock_witness_generator.hpp.
| using bb::MockClaimGenerator< Curve >::CommitmentKey = bb::CommitmentKey<Curve> |
Definition at line 19 of file mock_witness_generator.hpp.
| using bb::MockClaimGenerator< Curve >::Fr = typename Curve::ScalarField |
Definition at line 20 of file mock_witness_generator.hpp.
| using bb::MockClaimGenerator< Curve >::Polynomial = bb::Polynomial<Fr> |
Definition at line 22 of file mock_witness_generator.hpp.
| using bb::MockClaimGenerator< Curve >::PolynomialBatcher = bb::GeminiProver_<Curve>::PolynomialBatcher |
Definition at line 23 of file mock_witness_generator.hpp.
|
inline |
Construct claim data for a set of random polynomials with the specified type.
| poly_size | size of mock polynomials |
| num_polynomials | total number of unique polynomials |
| num_to_be_shifted | number of polynomials to-be-shifted |
| mle_opening_point | |
| commitment_key |
Definition at line 59 of file mock_witness_generator.hpp.
|
inline |
Definition at line 124 of file mock_witness_generator.hpp.
|
inline |
Definition at line 141 of file mock_witness_generator.hpp.
|
inline |
Definition at line 165 of file mock_witness_generator.hpp.
| CommitmentKey bb::MockClaimGenerator< Curve >::ck |
Definition at line 27 of file mock_witness_generator.hpp.
| ClaimBatcher bb::MockClaimGenerator< Curve >::claim_batcher |
Definition at line 41 of file mock_witness_generator.hpp.
| std::vector<Fr> bb::MockClaimGenerator< Curve >::const_size_mle_opening_point |
Definition at line 38 of file mock_witness_generator.hpp.
| PolynomialBatcher bb::MockClaimGenerator< Curve >::polynomial_batcher |
Definition at line 40 of file mock_witness_generator.hpp.
| std::vector<bb::Polynomial<Fr> > bb::MockClaimGenerator< Curve >::round_univariates |
Definition at line 44 of file mock_witness_generator.hpp.
| std::vector<Commitment> bb::MockClaimGenerator< Curve >::sumcheck_commitments |
Definition at line 45 of file mock_witness_generator.hpp.
| std::vector<std::array<Fr, 3> > bb::MockClaimGenerator< Curve >::sumcheck_evaluations |
Definition at line 46 of file mock_witness_generator.hpp.
| ClaimData bb::MockClaimGenerator< Curve >::to_be_shifted |
Definition at line 36 of file mock_witness_generator.hpp.
| ClaimData bb::MockClaimGenerator< Curve >::unshifted |
Definition at line 35 of file mock_witness_generator.hpp.