Skip to content

Commit

Permalink
PC/IPA:fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbeunardeau88 committed Oct 2, 2024
1 parent ce2ace1 commit 271e3af
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions poly-commitment/src/ipa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -825,15 +825,16 @@ where
}

impl<G: CommitmentCurve> SRS<G> {
/// This function opens polynomial commitments in batch
/// - plnms: batch of polynomials to open commitments for with, optionally, max degrees
/// This function opens polynomials in batch at several points
/// - plnms: batch of polynomials to open commitments for
/// - elm: evaluation point vector to open the commitments at
/// - polyscale: used to combine polynomials for opening commitments in batch
/// (we will open the \sum_i polyscale^i * plnms.[i])
/// (we will open the \sum_i polyscale^i * plnms.(i))
/// - evalscale: used to combine evaluations to open on only one point
/// - sponge: parameters for the random oracle argument
/// - rng: used for blinders for the zk property
/// RETURN: commitment opening proof
/// A slight modification to the original protocol is done
/// when absorbing the first prover message.
#[allow(clippy::too_many_arguments)]
#[allow(clippy::type_complexity)]
#[allow(clippy::many_single_char_names)]
Expand Down Expand Up @@ -901,6 +902,8 @@ impl<G: CommitmentCurve> SRS<G> {
// So we should absorb `combined_inner_product``
// However it is more efficient in the recursion circuit
// to absorb a slightly modified version of it.
// As a reminder, in a recursive seeting, the challenges are given as a public input
// and verified in the next iteration.
// See the `shift_scalar`` doc.
sponge.absorb_fr(&[shift_scalar::<G>(combined_inner_product)]);

Expand Down

0 comments on commit 271e3af

Please sign in to comment.