diff --git a/accounts/src/key_management/ephemeral_key_holder.rs b/accounts/src/key_management/ephemeral_key_holder.rs index 266cfa3..6210369 100644 --- a/accounts/src/key_management/ephemeral_key_holder.rs +++ b/accounts/src/key_management/ephemeral_key_holder.rs @@ -1,9 +1,9 @@ use aes_gcm::{aead::Aead, AeadCore, Aes256Gcm, Key, KeyInit}; +use elliptic_curve::point::AffineCoordinates; use elliptic_curve::PrimeField; use k256::{AffinePoint, FieldBytes, Scalar}; use log::info; use rand::{rngs::OsRng, RngCore}; -use elliptic_curve::point::AffineCoordinates; use super::constants_types::{CipherText, Nonce}; diff --git a/accounts/src/key_management/mod.rs b/accounts/src/key_management/mod.rs index 712e8a4..1e690ac 100644 --- a/accounts/src/key_management/mod.rs +++ b/accounts/src/key_management/mod.rs @@ -1,11 +1,11 @@ use aes_gcm::{aead::Aead, Aes256Gcm, Key, KeyInit}; use common::merkle_tree_public::TreeHashType; use constants_types::{CipherText, Nonce}; +use elliptic_curve::point::AffineCoordinates; use ephemeral_key_holder::EphemeralKeyHolder; use k256::AffinePoint; use log::info; use secret_holders::{SeedHolder, TopSecretKeyHolder, UTXOSecretKeyHolder}; -use elliptic_curve::point::AffineCoordinates; use crate::account_core::PublicKey; @@ -110,14 +110,13 @@ mod tests { }; use constants_types::{CipherText, Nonce}; use constants_types::{NULLIFIER_SECRET_CONST, VIEWING_SECRET_CONST}; - use elliptic_curve::{ff::Field, PrimeField}; use elliptic_curve::group::prime::PrimeCurveAffine; - use k256::{AffinePoint, ProjectivePoint, Scalar}; use elliptic_curve::point::AffineCoordinates; + use elliptic_curve::{ff::Field, PrimeField}; + use k256::{AffinePoint, ProjectivePoint, Scalar}; use super::*; - #[test] fn test_new_os_random() { // Ensure that a new AddressKeyHolder instance can be created without errors.