diff --git a/coins/monero/Cargo.toml b/coins/monero/Cargo.toml index 6525ab25..e3255099 100644 --- a/coins/monero/Cargo.toml +++ b/coins/monero/Cargo.toml @@ -21,7 +21,7 @@ rand_chacha = { version = "0.3", optional = true } rand = "0.8" rand_distr = "0.4" -zeroize = { version = "1.5", features = ["zeroize_derive"] } +zeroize = { version = "^1.5", features = ["zeroize_derive"] } subtle = "2.4" sha3 = "0.10" diff --git a/common/zalloc/Cargo.toml b/common/zalloc/Cargo.toml index db38f3e2..2a18cf3c 100644 --- a/common/zalloc/Cargo.toml +++ b/common/zalloc/Cargo.toml @@ -13,7 +13,7 @@ all-features = true rustdoc-args = ["--cfg", "docsrs"] [dependencies] -zeroize = "1.5" +zeroize = "^1.5" [features] # Commented for now as it requires nightly and we don't use nightly diff --git a/crypto/ciphersuite/Cargo.toml b/crypto/ciphersuite/Cargo.toml index 4497299d..16bb2118 100644 --- a/crypto/ciphersuite/Cargo.toml +++ b/crypto/ciphersuite/Cargo.toml @@ -15,7 +15,7 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] rand_core = "0.6" -zeroize = { version = "1.5", features = ["zeroize_derive"] } +zeroize = { version = "^1.5", features = ["zeroize_derive"] } subtle = "2" digest = "0.10" diff --git a/crypto/dalek-ff-group/Cargo.toml b/crypto/dalek-ff-group/Cargo.toml index fa6a1395..a0b336a2 100644 --- a/crypto/dalek-ff-group/Cargo.toml +++ b/crypto/dalek-ff-group/Cargo.toml @@ -16,7 +16,7 @@ rustdoc-args = ["--cfg", "docsrs"] rand_core = "0.6" digest = "0.10" -zeroize = { version = "1.5", features = ["zeroize_derive"] } +zeroize = { version = "^1.5", features = ["zeroize_derive"] } subtle = "2.4" ff = "0.12" diff --git a/crypto/dkg/Cargo.toml b/crypto/dkg/Cargo.toml index fbdcba75..c45f3c00 100644 --- a/crypto/dkg/Cargo.toml +++ b/crypto/dkg/Cargo.toml @@ -17,7 +17,7 @@ thiserror = "1" rand_core = "0.6" -zeroize = { version = "1.5", features = ["zeroize_derive"] } +zeroize = { version = "^1.5", features = ["zeroize_derive"] } subtle = "2" hex = "0.4" diff --git a/crypto/ed448/Cargo.toml b/crypto/ed448/Cargo.toml index fe061fc6..78758090 100644 --- a/crypto/ed448/Cargo.toml +++ b/crypto/ed448/Cargo.toml @@ -18,7 +18,7 @@ lazy_static = "1" rand_core = "0.6" digest = "0.10" -zeroize = { version = "1.5", features = ["zeroize_derive"] } +zeroize = { version = "^1.5", features = ["zeroize_derive"] } subtle = "2.4" ff = "0.12" diff --git a/crypto/frost/Cargo.toml b/crypto/frost/Cargo.toml index 91eaa91d..f03d7a87 100644 --- a/crypto/frost/Cargo.toml +++ b/crypto/frost/Cargo.toml @@ -18,7 +18,7 @@ thiserror = "1" rand_core = "0.6" rand_chacha = "0.3" -zeroize = { version = "1.5", features = ["zeroize_derive"] } +zeroize = { version = "^1.5", features = ["zeroize_derive"] } subtle = "2" hex = "0.4" diff --git a/crypto/multiexp/Cargo.toml b/crypto/multiexp/Cargo.toml index 0a935289..ecddf764 100644 --- a/crypto/multiexp/Cargo.toml +++ b/crypto/multiexp/Cargo.toml @@ -13,7 +13,7 @@ all-features = true rustdoc-args = ["--cfg", "docsrs"] [dependencies] -zeroize = { version = "1.5", features = ["zeroize_derive"] } +zeroize = { version = "^1.5", features = ["zeroize_derive"] } ff = "0.12" group = "0.12" diff --git a/crypto/multiexp/src/batch.rs b/crypto/multiexp/src/batch.rs index 81458914..c47e2845 100644 --- a/crypto/multiexp/src/batch.rs +++ b/crypto/multiexp/src/batch.rs @@ -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(Zeroizing)>>) +pub struct BatchVerifier( + Zeroizing)>>, +) where ::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. diff --git a/crypto/schnorr/Cargo.toml b/crypto/schnorr/Cargo.toml index 2a46c47a..f6a2ea89 100644 --- a/crypto/schnorr/Cargo.toml +++ b/crypto/schnorr/Cargo.toml @@ -15,7 +15,7 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] rand_core = "0.6" -zeroize = { version = "1.5", features = ["zeroize_derive"] } +zeroize = { version = "^1.5", features = ["zeroize_derive"] } transcript = { package = "flexible-transcript", path = "../transcript", version = "0.2" } diff --git a/processor/Cargo.toml b/processor/Cargo.toml index 695b16e4..f86fb7a6 100644 --- a/processor/Cargo.toml +++ b/processor/Cargo.toml @@ -15,7 +15,7 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] async-trait = "0.1" -zeroize = "1.5" +zeroize = "^1.5" thiserror = "1" rand_core = "0.6"