Skip to content

Commit

Permalink
chore: rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rupansh committed Apr 3, 2024
1 parent 44bfddd commit 76f116d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions tests/rfc8032.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u8>, pk_bytes: Vec<u8>, sig_bytes: Vec<u8>, msg: Vec<u8>) {
let sk: SigningKey = bincode::deserialize(&sk_bytes).expect("sk should deserialize");
let pk: VerificationKey = bincode::deserialize(&pk_bytes).expect("pk should deserialize");
Expand Down
3 changes: 2 additions & 1 deletion tests/small_order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ pub static SMALL_ORDER_SIGS: Lazy<Vec<TestCase>> = 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,
Expand Down
1 change: 0 additions & 1 deletion tests/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 76f116d

Please sign in to comment.