Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
small_subgroup_ipa_utils.hpp
Go to the documentation of this file.
1// === AUDIT STATUS ===
2// internal: { status: not started, auditors: [], date: YYYY-MM-DD }
3// external_1: { status: not started, auditors: [], date: YYYY-MM-DD }
4// external_2: { status: not started, auditors: [], date: YYYY-MM-DD }
5// =====================
6
7#pragma once
8
11
12#include <array>
13#include <string>
14
15namespace bb {
16
21{
22 return { label_prefix + "concatenation_eval",
23 label_prefix + "grand_sum_shift_eval",
24 label_prefix + "grand_sum_eval",
25 label_prefix + "quotient_eval" };
26};
27
32template <typename FF>
33inline std::array<FF, NUM_SMALL_IPA_EVALUATIONS> compute_evaluation_points(const FF& small_ipa_evaluation_challenge,
34 const FF& subgroup_generator)
35{
36 return { small_ipa_evaluation_challenge,
37 small_ipa_evaluation_challenge * subgroup_generator,
38 small_ipa_evaluation_challenge,
39 small_ipa_evaluation_challenge };
40}
41
45template <typename Commitment> struct SmallSubgroupIPACommitments {
47 // The grand sum commitment is returned twice since we are opening the corresponding polynomial at 2 points.
52};
53} // namespace bb
A template class for a reference array. Behaves as if std::array<T&, N> was possible.
Definition ref_array.hpp:22
Entry point for Barretenberg command-line interface.
typename Flavor::FF FF
std::array< std::string, NUM_SMALL_IPA_EVALUATIONS > get_evaluation_labels(const std::string &label_prefix)
Shared by Prover and Verifier. label_prefix is either Libra: or Translation:.
std::array< FF, NUM_SMALL_IPA_EVALUATIONS > compute_evaluation_points(const FF &small_ipa_evaluation_challenge, const FF &subgroup_generator)
The verification of Grand Sum Identity requires the evaluations G(r), A(g * r), A(r),...
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13
Contains commitments to polynomials [G], [A], and [Q]. See SmallSubgroupIPAProver docs.
RefArray< Commitment, NUM_SMALL_IPA_EVALUATIONS > get_all()