Skip to content

Commit

Permalink
fix: correct size in MSM for the debug assert
Browse files Browse the repository at this point in the history
  • Loading branch information
rw0x0 authored and dkales committed Oct 3, 2024
1 parent 5a36ad5 commit d3ac74e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion co-noir/co-ultrahonk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ impl CoUtils {
where
T: MSMProvider<P::G1>,
{
let len = poly.len();
let poly_vec = FieldShareVec::<T, P>::from(poly.to_vec());
MSMProvider::msm_public_points(driver, &crs.monomials, &poly_vec)
MSMProvider::msm_public_points(driver, &crs.monomials[..len], &poly_vec)
}

pub(crate) fn batch_invert<T, P: Pairing>(
Expand Down

0 comments on commit d3ac74e

Please sign in to comment.