Skip to content

Commit

Permalink
batch_mul_with_preprocessing no longer takes self as argument (#142)
Browse files Browse the repository at this point in the history
* batch_mul_with_preprocessing no longer takes `self` as argument

* Apply suggestions from code review

Co-authored-by: Pratyush Mishra <[email protected]>

* fix variable name

---------

Co-authored-by: Pratyush Mishra <[email protected]>
  • Loading branch information
mmagician and Pratyush authored Jan 17, 2024
1 parent f6a0c13 commit 12f5529
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion poly-commit/src/marlin/marlin_pst13_pc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ where
cur *= &betas[i];
powers_of_beta.push(cur);
}
*v = gamma_g.batch_mul_with_preprocessing(&powers_of_beta, &gamma_g_table);
*v = gamma_g_table.batch_mul(&powers_of_beta);
});
end_timer!(gamma_g_time);

Expand Down
4 changes: 2 additions & 2 deletions poly-commit/src/multilinear_pc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl<E: Pairing> MultilinearPC<E> {
}

let g_table = BatchMulPreprocessing::new(g, num_vars);
let pp_g = g.batch_mul_with_preprocessing(&pp_powers, &g_table);
let pp_g = g_table.batch_mul(&pp_powers);
let pp_h = h.batch_mul(&pp_powers);
let mut start = 0;
for i in 0..num_vars {
Expand All @@ -73,7 +73,7 @@ impl<E: Pairing> MultilinearPC<E> {

// uncomment to measure the time for calculating vp
// let vp_generation_timer = start_timer!(|| "VP generation");
let g_mask = g.batch_mul_with_preprocessing(&t, &g_table);
let g_mask = g_table.batch_mul(&t);
// end_timer!(vp_generation_timer);

UniversalParams {
Expand Down

0 comments on commit 12f5529

Please sign in to comment.