diff --git a/tests/rfc8032.rs b/tests/rfc8032.rs index dcfd580..24cd080 100644 --- a/tests/rfc8032.rs +++ b/tests/rfc8032.rs @@ -4,10 +4,8 @@ //! so these are basic sanity checks, rather than the more detailed test vectors //! in consensus.rs. - use ed25519_consensus::*; - fn rfc8032_test_case(sk_bytes: Vec, pk_bytes: Vec, sig_bytes: Vec, msg: Vec) { let sk: SigningKey = bincode::deserialize(&sk_bytes).expect("sk should deserialize"); let pk: VerificationKey = bincode::deserialize(&pk_bytes).expect("pk should deserialize"); diff --git a/tests/small_order.rs b/tests/small_order.rs index 5ecf121..3bdfb95 100644 --- a/tests/small_order.rs +++ b/tests/small_order.rs @@ -57,7 +57,8 @@ pub static SMALL_ORDER_SIGS: Lazy> = Lazy::new(|| { let non_canonical_R = R.compress().as_bytes() != R_bytes; let valid_legacy = !(vk_bytes == [0; 32] || util::EXCLUDED_POINT_ENCODINGS.contains(R.compress().as_bytes()) - || !check.is_identity() || non_canonical_R); + || !check.is_identity() + || non_canonical_R); tests.push(TestCase { vk_bytes, diff --git a/tests/util/mod.rs b/tests/util/mod.rs index a613f79..57b317f 100644 --- a/tests/util/mod.rs +++ b/tests/util/mod.rs @@ -4,7 +4,6 @@ use color_eyre::{eyre::eyre, Report}; use curve25519_dalek::edwards::{CompressedEdwardsY, EdwardsPoint}; - use std::convert::TryFrom; pub struct TestCase { pub vk_bytes: [u8; 32],