Update Zeroize pin to ^1.5 from 1.5

This commit is contained in:
Luke Parker
2023-03-07 02:29:59 -05:00
parent a053454ae4
commit c37cc0b4e2
11 changed files with 14 additions and 14 deletions

View File

@@ -22,7 +22,9 @@ where
/// A batch verifier intended to verify a series of statements are each equivalent to zero.
#[allow(clippy::type_complexity)]
#[derive(Clone, Zeroize)]
pub struct BatchVerifier<Id: Copy + Zeroize, G: Group + Zeroize>(Zeroizing<Vec<(Id, Vec<(G::Scalar, G)>)>>)
pub struct BatchVerifier<Id: Copy + Zeroize, G: Group + Zeroize>(
Zeroizing<Vec<(Id, Vec<(G::Scalar, G)>)>>,
)
where
<G as Group>::Scalar: PrimeFieldBits + Zeroize;
@@ -86,9 +88,7 @@ where
weight
};
self
.0
.push((id, pairs.into_iter().map(|(scalar, point)| (scalar * u, point)).collect()));
self.0.push((id, pairs.into_iter().map(|(scalar, point)| (scalar * u, point)).collect()));
}
/// Perform batch verification, returning a boolean of if the statements equaled zero.