diff --git a/src/signature.rs b/src/signature.rs index 5e662f9..9167c19 100644 --- a/src/signature.rs +++ b/src/signature.rs @@ -113,9 +113,9 @@ pub fn aggregate(signatures: &[Signature]) -> Result { } let res = signatures - .into_iter() + .iter() .fold(G2Projective::identity(), |acc, signature| { - acc + &signature.0 + acc + signature.0 }); Ok(Signature(res.into()))