adjust m value for G powers.

This commit is contained in:
M Alghazwi 2025-07-03 12:15:36 +02:00
parent be89b3be77
commit caf6561fa2

View File

@ -137,7 +137,7 @@ impl PolyCommScheme<F> for KZG10PolyComm {
) -> Result<Self::Proof> {
// powers from the srs
let m = srs.powers_of_g.len();
let m = srs.powers_of_g.len() - 1;
let powers= get_powers(&srs, m)?;
// get row poly and rand