mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-09 09:13:09 +00:00
use windowed mul in GLV
This commit is contained in:
parent
1e3743f46c
commit
8ad193db17
@ -207,7 +207,6 @@ mod tests {
|
||||
|
||||
builder.connect_affine_point(&neg_five_g_expected, &neg_five_g_actual);
|
||||
|
||||
println!("NUM GATES: {}", builder.num_gates());
|
||||
let data = builder.build::<C>();
|
||||
let proof = data.prove(pw).unwrap();
|
||||
|
||||
|
||||
@ -53,9 +53,8 @@ impl<F: RichField + Extendable<D>, const D: usize> CircuitBuilder<F, D> {
|
||||
y: p.y.clone(),
|
||||
};
|
||||
|
||||
// TODO: replace with MSM
|
||||
let part1 = self.curve_scalar_mul(p, &k1);
|
||||
let part2 = self.curve_scalar_mul(&sp, &k2);
|
||||
let part1 = self.curve_scalar_mul_windowed(p, &k1);
|
||||
let part2 = self.curve_scalar_mul_windowed(&sp, &k2);
|
||||
|
||||
self.curve_add(&part1, &part2)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user