52 using ClaimBatch = ClaimBatcher::Batch;
67 for (
auto [comm, label] :
zip_view(commitments.get_wires(), commitment_labels.get_wires())) {
68 comm =
transcript->template receive_from_prover<Commitment>(label);
72 const auto [beta, gamma] =
transcript->template get_challenges<FF>(
"beta",
"gamma");
74 auto beta_sqr = beta * beta;
76 relation_parameters.
gamma = gamma;
77 relation_parameters.
beta = beta;
78 relation_parameters.
beta_sqr = beta * beta;
79 relation_parameters.
beta_cube = beta_sqr * beta;
81 gamma * (gamma + beta_sqr) * (gamma + beta_sqr + beta_sqr) * (gamma + beta_sqr + beta_sqr + beta_sqr);
85 commitments.lookup_inverses =
86 transcript->template receive_from_prover<Commitment>(commitment_labels.lookup_inverses);
87 commitments.z_perm =
transcript->template receive_from_prover<Commitment>(commitment_labels.z_perm);
92 const FF alpha =
transcript->template get_challenge<FF>(
"Sumcheck:alpha");
93 Sumcheck sumcheck(
transcript, alpha, CONST_ECCVM_LOG_N);
95 std::vector<FF> gate_challenges(CONST_ECCVM_LOG_N);
96 for (
size_t idx = 0; idx < gate_challenges.size(); idx++) {
103 libra_commitments[0] =
transcript->template receive_from_prover<Commitment>(
"Libra:concatenation_commitment");
105 auto sumcheck_output = sumcheck.verify(relation_parameters, gate_challenges);
107 libra_commitments[1] =
transcript->template receive_from_prover<Commitment>(
"Libra:grand_sum_commitment");
108 libra_commitments[2] =
transcript->template receive_from_prover<Commitment>(
"Libra:quotient_commitment");
112 bool consistency_checked =
true;
113 ClaimBatcher claim_batcher{
114 .unshifted = ClaimBatch{ commitments.get_unshifted(), sumcheck_output.claimed_evaluations.get_unshifted() },
115 .shifted = ClaimBatch{ commitments.get_to_be_shifted(), sumcheck_output.claimed_evaluations.get_shifted() }
122 std::ranges::fill(padding_indicator_array, one);
125 Shplemini::compute_batch_opening_claim(padding_indicator_array,
127 sumcheck_output.challenge,
128 key->pcs_verification_key.get_g1_identity(),
132 &consistency_checked,
134 sumcheck_output.claimed_libra_evaluation,
135 sumcheck_output.round_univariate_commitments,
136 sumcheck_output.round_univariate_evaluations);
139 const OpeningClaim multivariate_to_univariate_opening_claim =
140 PCS::reduce_batch_opening_claim(sumcheck_batch_opening_claims);
143 const std::vector<Commitment> translation_commitments = { commitments.transcript_op,
144 commitments.transcript_Px,
145 commitments.transcript_Py,
146 commitments.transcript_z1,
147 commitments.transcript_z2 };
156 return { batch_opening_claim, proof.
ipa_proof };
181 transcript->template receive_from_prover<Commitment>(
"Translation:concatenated_masking_term_commitment");
188 eval =
transcript->template receive_from_prover<FF>(label);
199 transcript->template receive_from_prover<Commitment>(
"Translation:grand_sum_commitment");
201 transcript->template receive_from_prover<Commitment>(
"Translation:quotient_commitment");
205 const FF small_ipa_evaluation_challenge =
206 transcript->template get_challenge<FF>(
"Translation:small_ipa_evaluation_challenge");
210 SmallIPA::evaluation_points(small_ipa_evaluation_challenge);
213 for (
size_t idx = 0; idx < NUM_SMALL_IPA_EVALUATIONS; idx++) {
214 small_ipa_evaluations[idx] =
transcript->template receive_from_prover<FF>(labels[idx]);
215 opening_claims[idx] = { { evaluation_points[idx], small_ipa_evaluations[idx] },
216 small_ipa_commitments.
get_all()[idx] };
220 SmallIPA::check_eccvm_evaluations_consistency(small_ipa_evaluations,
221 small_ipa_evaluation_challenge,
230 std::vector<FF> batching_challenges = {
FF::one() };
231 for (
size_t idx = 1; idx < NUM_TRANSLATION_EVALUATIONS; ++idx) {
233 batching_challenges.emplace_back(batching_scalar);
240 batched_commitment };
void compute_translation_opening_claims(const std::vector< Commitment > &translation_commitments)
To link the ECCVM Transcript wires op, Px, Py, z1, and z2 to the accumulator computed by the translat...