Skip to content

Commit

Permalink
remove or move unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dnkolegov committed Apr 5, 2024
1 parent 04478d0 commit 4019128
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 0 additions & 3 deletions node/libs/crypto/src/bls12_381/tests.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
use super::*;
use rand::{rngs::StdRng, Rng, SeedableRng};
use std::iter::repeat_with;
use std::ops::Deref;
use anyhow::__private::kind::TraitKind;
use thiserror::__private::AsDynError;

// Test signing and verifying a random message
#[test]
Expand Down
2 changes: 1 addition & 1 deletion node/libs/crypto/src/bn254/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl Signature {
///
/// This function is intentionally non-generic and disallow inlining to ensure that compilation optimizations can be effectively applied.
/// This optimization is needed for ensuring that tests can run within a reasonable time frame.
///
///
/// Subgroup checks for signatures are unnecessary when using the G1 group because it has a cofactor of 1,
/// ensuring all signatures are in the correct subgroup.
/// Ref: https://hackmd.io/@jpw/bn254#Subgroup-check-for-mathbb-G_1.
Expand Down
7 changes: 3 additions & 4 deletions node/libs/crypto/src/ed25519/tests.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
use ed25519_dalek::{
Signature, Signer, SigningKey, VerifyingKey, PUBLIC_KEY_LENGTH, SECRET_KEY_LENGTH,
};
use hex::FromHex;
#[test]
fn test_ed25519() -> Result<(), Box<dyn std::error::Error>> {
use ed25519_dalek::{
Signature, Signer, SigningKey, VerifyingKey, PUBLIC_KEY_LENGTH, SECRET_KEY_LENGTH,
};
// Test vectors obtained from https://github.com/dalek-cryptography/ed25519-dalek/blob/main/TESTVECTORS.
let test_vectors: Vec<(Vec<u8>, Vec<u8>, Vec<u8>, Vec<u8>)> = vec![
(
Expand Down

0 comments on commit 4019128

Please sign in to comment.