Skip to content

Commit 8a8992d

Browse files
committed
Cleaning
1 parent 93457d2 commit 8a8992d

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

nucypher-core/src/dkg.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use ferveo::api::{CiphertextHeader, FerveoVariant};
99
use generic_array::typenum::Unsigned;
1010
use rand_core::{CryptoRng, RngCore};
1111
use serde::{Deserialize, Deserializer, Serialize, Serializer};
12-
use serde_json;
1312
use umbral_pre::serde_bytes; // TODO should this be in umbral?
1413

1514
use crate::access_control::AccessControlPolicy;

nucypher-core/src/test_vectors.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Module for generating and handling test vectors for encryption/decryption testing.
22
33
use alloc::vec::Vec;
4-
use alloc::string::String;
54
use serde::{Deserialize, Serialize};
65
use serde_encoded_bytes::{ArrayLike, SliceLike, Hex};
76
use x25519_dalek::StaticSecret;
@@ -68,8 +67,6 @@ pub fn create_session_shared_secret_from_static_secrets(static_secret_a: &Static
6867
#[cfg(feature = "test_vectors")]
6968
pub fn generate_test_vectors() -> Vec<TestVector> {
7069
use chacha20poly1305::{AeadCore, ChaCha20Poly1305};
71-
use rand::rngs::StdRng;
72-
use rand::SeedableRng;
7370
use alloc::vec;
7471

7572
let mut test_vectors = Vec::new();
@@ -107,13 +104,3 @@ pub fn generate_test_vectors() -> Vec<TestVector> {
107104

108105
test_vectors
109106
}
110-
111-
#[cfg(feature = "test_vectors")]
112-
pub fn serialize_test_vector_to_json(vector: &TestVector) -> String {
113-
serde_json::to_string(vector).expect("Failed to serialize test vector to JSON")
114-
}
115-
116-
#[cfg(feature = "test_vectors")]
117-
pub fn deserialize_test_vector_from_json(json: &str) -> TestVector {
118-
serde_json::from_str(json).expect("Failed to deserialize test vector from JSON")
119-
}

0 commit comments

Comments
 (0)