mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Update and remove unused dependencies
This commit is contained in:
@@ -16,7 +16,7 @@ rustdoc-args = ["--cfg", "docsrs"]
|
||||
rand_core = "0.6"
|
||||
|
||||
zeroize = { version = "^1.5", features = ["zeroize_derive"] }
|
||||
subtle = "2"
|
||||
subtle = "^2.4"
|
||||
|
||||
digest = "0.10"
|
||||
transcript = { package = "flexible-transcript", path = "../transcript", version = "0.2" }
|
||||
|
||||
@@ -17,15 +17,15 @@ rand_core = "0.6"
|
||||
digest = "0.10"
|
||||
|
||||
zeroize = { version = "^1.5", features = ["zeroize_derive"] }
|
||||
subtle = "2.4"
|
||||
subtle = "^2.4"
|
||||
|
||||
ff = "0.12"
|
||||
ff = { version = "0.12", features = ["bits"] }
|
||||
group = "0.12"
|
||||
|
||||
crypto-bigint = "0.4"
|
||||
|
||||
sha2 = "0.9"
|
||||
curve25519-dalek = "3.2"
|
||||
curve25519-dalek = "^3.2"
|
||||
|
||||
[dev-dependencies]
|
||||
ff-group-tests = { path = "../ff-group-tests" }
|
||||
|
||||
@@ -9,7 +9,7 @@ use subtle::{
|
||||
|
||||
use crypto_bigint::{Integer, Encoding, U256, U512};
|
||||
|
||||
use ff::{Field, PrimeField, FieldBits, PrimeFieldBits};
|
||||
use group::ff::{Field, PrimeField, FieldBits, PrimeFieldBits};
|
||||
|
||||
use crate::{constant_time, math, from_uint};
|
||||
|
||||
|
||||
@@ -32,8 +32,11 @@ use dalek::{
|
||||
},
|
||||
};
|
||||
|
||||
use ff::{Field, PrimeField, FieldBits, PrimeFieldBits};
|
||||
use group::{Group, GroupEncoding, prime::PrimeGroup};
|
||||
use group::{
|
||||
ff::{Field, PrimeField, FieldBits, PrimeFieldBits},
|
||||
Group, GroupEncoding,
|
||||
prime::PrimeGroup,
|
||||
};
|
||||
|
||||
pub mod field;
|
||||
|
||||
|
||||
@@ -18,9 +18,6 @@ thiserror = "1"
|
||||
rand_core = "0.6"
|
||||
|
||||
zeroize = { version = "^1.5", features = ["zeroize_derive"] }
|
||||
subtle = "2"
|
||||
|
||||
hex = "0.4"
|
||||
|
||||
transcript = { package = "flexible-transcript", path = "../transcript", version = "0.2", features = ["recommended"] }
|
||||
chacha20 = { version = "0.9", features = ["zeroize"] }
|
||||
|
||||
@@ -66,7 +66,7 @@ impl<C: Ciphersuite, M: Message> EncryptionKeyMessage<C, M> {
|
||||
buf
|
||||
}
|
||||
|
||||
// Used by tests
|
||||
#[cfg(any(test, feature = "tests"))]
|
||||
pub(crate) fn enc_key(&self) -> C::G {
|
||||
self.enc_key
|
||||
}
|
||||
|
||||
@@ -12,10 +12,10 @@ all-features = true
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
||||
[dependencies]
|
||||
thiserror = "1"
|
||||
thiserror = { version = "1", optional = true }
|
||||
rand_core = "0.6"
|
||||
|
||||
zeroize = { version = "1.3", features = ["zeroize_derive"] }
|
||||
zeroize = { version = "^1.5", features = ["zeroize_derive"] }
|
||||
|
||||
digest = "0.10"
|
||||
|
||||
@@ -39,7 +39,7 @@ transcript = { package = "flexible-transcript", path = "../transcript", features
|
||||
[features]
|
||||
std = []
|
||||
serialize = ["std"]
|
||||
experimental = ["std", "multiexp"]
|
||||
experimental = ["std", "thiserror", "multiexp"]
|
||||
secure_capacity_difference = []
|
||||
|
||||
# Only applies to experimental, yet is default to ensure security
|
||||
|
||||
@@ -16,12 +16,11 @@ rustdoc-args = ["--cfg", "docsrs"]
|
||||
lazy_static = "1"
|
||||
|
||||
rand_core = "0.6"
|
||||
digest = "0.10"
|
||||
|
||||
zeroize = { version = "^1.5", features = ["zeroize_derive"] }
|
||||
subtle = "2.4"
|
||||
subtle = "^2.4"
|
||||
|
||||
ff = "0.12"
|
||||
ff = { version = "0.12", features = ["bits"] }
|
||||
group = "0.12"
|
||||
|
||||
generic-array = "0.14"
|
||||
|
||||
@@ -11,7 +11,7 @@ macro_rules! field {
|
||||
use generic_array::{typenum::U57, GenericArray};
|
||||
use crypto_bigint::{Integer, Encoding};
|
||||
|
||||
use ff::{Field, PrimeField, FieldBits, PrimeFieldBits};
|
||||
use group::ff::{Field, PrimeField, FieldBits, PrimeFieldBits};
|
||||
|
||||
// Needed to publish for some reason? Yet not actually needed
|
||||
#[allow(unused_imports)]
|
||||
|
||||
@@ -12,8 +12,11 @@ use subtle::{Choice, CtOption, ConstantTimeEq, ConditionallySelectable, Conditio
|
||||
|
||||
use crypto_bigint::U512;
|
||||
|
||||
use ff::{Field, PrimeField, PrimeFieldBits};
|
||||
use group::{Group, GroupEncoding, prime::PrimeGroup};
|
||||
use group::{
|
||||
ff::{Field, PrimeField, PrimeFieldBits},
|
||||
Group, GroupEncoding,
|
||||
prime::PrimeGroup,
|
||||
};
|
||||
|
||||
use crate::{
|
||||
scalar::{Scalar, MODULUS as SCALAR_MODULUS},
|
||||
|
||||
@@ -19,24 +19,19 @@ rand_core = "0.6"
|
||||
rand_chacha = "0.3"
|
||||
|
||||
zeroize = { version = "^1.5", features = ["zeroize_derive"] }
|
||||
subtle = "2"
|
||||
subtle = "^2.4"
|
||||
|
||||
hex = "0.4"
|
||||
hex = { version = "0.4", optional = true }
|
||||
|
||||
digest = "0.10"
|
||||
|
||||
hkdf = "0.12"
|
||||
chacha20 = { version = "0.9", features = ["zeroize"] }
|
||||
transcript = { package = "flexible-transcript", path = "../transcript", version = "0.2", features = ["recommended"] }
|
||||
|
||||
group = "0.12"
|
||||
ciphersuite = { path = "../ciphersuite", version = "0.1", features = ["std"] }
|
||||
|
||||
dalek-ff-group = { path = "../dalek-ff-group", version = "^0.1.2", optional = true }
|
||||
minimal-ed448 = { path = "../ed448", version = "^0.1.2", optional = true }
|
||||
|
||||
ciphersuite = { path = "../ciphersuite", version = "0.1", features = ["std"] }
|
||||
|
||||
transcript = { package = "flexible-transcript", path = "../transcript", version = "0.2", features = ["recommended"] }
|
||||
|
||||
multiexp = { path = "../multiexp", version = "0.2", features = ["batch"] }
|
||||
|
||||
schnorr = { package = "schnorr-signatures", path = "../schnorr", version = "0.2" }
|
||||
@@ -58,4 +53,4 @@ p256 = ["ciphersuite/p256"]
|
||||
|
||||
ed448 = ["minimal-ed448", "ciphersuite/ed448"]
|
||||
|
||||
tests = ["dkg/tests"]
|
||||
tests = ["hex", "dkg/tests"]
|
||||
|
||||
@@ -11,10 +11,7 @@ use zeroize::{Zeroize, Zeroizing};
|
||||
|
||||
use transcript::Transcript;
|
||||
|
||||
use group::{
|
||||
ff::{Field, PrimeField},
|
||||
GroupEncoding,
|
||||
};
|
||||
use group::{ff::PrimeField, GroupEncoding};
|
||||
use multiexp::BatchVerifier;
|
||||
|
||||
use crate::{
|
||||
@@ -198,6 +195,8 @@ impl<C: Curve> Writable for SignatureShare<C> {
|
||||
#[cfg(any(test, feature = "tests"))]
|
||||
impl<C: Curve> SignatureShare<C> {
|
||||
pub(crate) fn invalidate(&mut self) {
|
||||
use group::ff::Field;
|
||||
|
||||
self.0 += C::F::one();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user