Skip to content

Commit c3b0e66

Browse files
lynndell2010lynndell | bitlayer
andauthored
fix #350 (#351)
fix #350 MSM chunk-count formula incorrect Co-authored-by: lynndell | bitlayer <lynndell.zhong@bitlayer.ltd>
1 parent 94d596d commit c3b0e66

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎bitvm/src/chunk/g16_runner_utils.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ pub(crate) fn wrap_hint_msm(
293293
pub_vky: Vec<ark_bn254::G1Affine>,
294294
) -> Vec<Segment> {
295295
let num_chunks_per_scalar =
296-
(Fr::N_BITS + WINDOW_G1_MSM - 1) / (WINDOW_G1_MSM * BATCH_SIZE_PER_CHUNK);
296+
(Fr::N_BITS + WINDOW_G1_MSM * BATCH_SIZE_PER_CHUNK - 1) / (WINDOW_G1_MSM * BATCH_SIZE_PER_CHUNK);
297297

298298
let hint_scalars: Vec<ark_ff::BigInt<4>> = scalars
299299
.iter()

0 commit comments

Comments
 (0)