Skip to content

Commit

Permalink
fix: remove misleading comment
Browse files Browse the repository at this point in the history
  • Loading branch information
huitseeker committed Feb 10, 2024
1 parent f5560fa commit 238ad43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/spartan/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ impl<E: Engine> PolyEvalWitness<E> {
}

/// Given a set of polynomials \[Pᵢ\] and a scalar `s`, this method computes the weighted sum
/// of the polynomials, where each polynomial Pᵢ is scaled by sⁱ. The method handles polynomials
/// of different sizes by padding smaller ones with zeroes up to the size of the largest polynomial.
/// of the polynomials, where each polynomial Pᵢ is scaled by sⁱ.
///
/// # Panics
///
/// This method panics if the polynomials in `p_vec` are not all of the same length.
fn batch(p_vec: &[&Vec<E::Scalar>], s: &E::Scalar) -> Self {
p_vec
.iter()
.skip(1)
.for_each(|p| assert_eq!(p.len(), p_vec[0].len()));

let powers_of_s = powers::<E>(s, p_vec.len());
Expand Down Expand Up @@ -186,7 +186,7 @@ impl<E: Engine> PolyEvalInstance<E> {
}
}

/// Bounds "row" variables of (A, B, C) matrices viewed as 2d multilinear polynomials
/// Binds "row" variables of (A, B, C) matrices viewed as 2d multilinear polynomials
fn compute_eval_table_sparse<E: Engine>(
S: &R1CSShape<E>,
rx: &[E::Scalar],
Expand Down

0 comments on commit 238ad43

Please sign in to comment.