diff --git a/src/wnaf.rs b/src/wnaf.rs index 03c027459..de5021d1a 100644 --- a/src/wnaf.rs +++ b/src/wnaf.rs @@ -93,11 +93,11 @@ impl Wnaf<(), Vec, Vec> { /// Given a base and a number of scalars, compute a window table and return a `Wnaf` object that /// can perform exponentiations with `.scalar(..)`. - pub fn base<'a>( - &'a mut self, + pub fn base( + &mut self, base: G, num_scalars: usize - ) -> Wnaf> + ) -> Wnaf> { // Compute the appropriate window size based on the number of scalars. let window_size = G::recommended_wnaf_for_num_scalars(num_scalars); @@ -116,10 +116,10 @@ impl Wnaf<(), Vec, Vec> { /// Given a scalar, compute its wNAF representation and return a `Wnaf` object that can perform /// exponentiations with `.base(..)`. - pub fn scalar<'a>( - &'a mut self, + pub fn scalar( + &mut self, scalar: <::Scalar as PrimeField>::Repr - ) -> Wnaf, &'a [i64]> + ) -> Wnaf, &[i64]> { // Compute the appropriate window size for the scalar. let window_size = G::recommended_wnaf_for_scalar(scalar);