Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

batch_mul_with_preprocessing no longer takes self as argument #142

Merged
merged 3 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading