diff --git a/src/spend/public.rs b/src/spend/public.rs index 192fd1c..18599fc 100644 --- a/src/spend/public.rs +++ b/src/spend/public.rs @@ -12,14 +12,14 @@ use crate::{ decode::decode, Error, JubJubAffine, JubJubExtended, JubJubScalar, }; -use dusk_jubjub::GENERATOR_EXTENDED; -use std::convert::TryFrom; -use std::fmt; -use subtle::{Choice, ConstantTimeEq}; #[cfg(feature = "canon")] use canonical::Canon; #[cfg(feature = "canon")] use canonical_derive::Canon; +use dusk_jubjub::GENERATOR_EXTENDED; +use std::convert::TryFrom; +use std::fmt; +use subtle::{Choice, ConstantTimeEq}; /// Public pair of `a·G` and `b·G` #[derive(Debug, Clone, Copy)] diff --git a/src/spend/secret.rs b/src/spend/secret.rs index 4bb2144..2c72759 100644 --- a/src/spend/secret.rs +++ b/src/spend/secret.rs @@ -14,14 +14,14 @@ use dusk_jubjub::GENERATOR_EXTENDED; use std::fmt; -use rand::rngs::StdRng; -use rand::SeedableRng; -use rand::{CryptoRng, RngCore}; -use sha2::{Digest, Sha256}; #[cfg(feature = "canon")] use canonical::Canon; #[cfg(feature = "canon")] use canonical_derive::Canon; +use rand::rngs::StdRng; +use rand::SeedableRng; +use rand::{CryptoRng, RngCore}; +use sha2::{Digest, Sha256}; /// Secret pair of `a` and `b` #[derive(Debug, Clone, Copy, PartialEq, Eq)]