From 74c7d4914daa1752156d6b0158e40de1f19dfde1 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 12 Aug 2020 08:12:48 +0100 Subject: [PATCH] group: Hard-code a w-NAF window size of 4 We were already ignoring the actual bit length of the scalar, and selecting the window size based on the maximum bit length, which effectively hard-coded a window size of 4. --- src/groth16/tests/dummy_engine.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/groth16/tests/dummy_engine.rs b/src/groth16/tests/dummy_engine.rs index c4a7ca9..4a3d6da 100644 --- a/src/groth16/tests/dummy_engine.rs +++ b/src/groth16/tests/dummy_engine.rs @@ -417,10 +417,6 @@ impl Curve for Fr { } impl WnafGroup for Fr { - fn recommended_wnaf_for_scalar(_: &Self::Scalar) -> usize { - 3 - } - fn recommended_wnaf_for_num_scalars(_: usize) -> usize { 3 }