reformat imports
This commit is contained in:
parent
c61775664e
commit
aba8c2f4af
|
@ -146,9 +146,13 @@ impl CloseAccountProof {
|
|||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
use crate::encryption::elgamal::ElGamalKeypair;
|
||||
use crate::encryption::pedersen::{Pedersen, PedersenDecryptHandle, PedersenOpening};
|
||||
use {
|
||||
super::*,
|
||||
crate::encryption::{
|
||||
elgamal::ElGamalKeypair,
|
||||
pedersen::{Pedersen, PedersenDecryptHandle, PedersenOpening},
|
||||
},
|
||||
};
|
||||
|
||||
#[test]
|
||||
fn test_close_account_correctness() {
|
||||
|
|
|
@ -480,8 +480,7 @@ pub fn combine_u32_ciphertexts(ct_lo: ElGamalCiphertext, ct_hi: ElGamalCiphertex
|
|||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
use crate::encryption::elgamal::ElGamalKeypair;
|
||||
use {super::*, crate::encryption::elgamal::ElGamalKeypair};
|
||||
|
||||
#[test]
|
||||
fn test_transfer_correctness() {
|
||||
|
|
|
@ -172,8 +172,7 @@ impl WithdrawProof {
|
|||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
use crate::encryption::elgamal::ElGamalKeypair;
|
||||
use {super::*, crate::encryption::elgamal::ElGamalKeypair};
|
||||
|
||||
#[test]
|
||||
#[ignore]
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
use core::iter;
|
||||
use std::borrow::Borrow;
|
||||
|
||||
use curve25519_dalek::ristretto::{CompressedRistretto, RistrettoPoint};
|
||||
use curve25519_dalek::scalar::Scalar;
|
||||
use curve25519_dalek::traits::VartimeMultiscalarMul;
|
||||
|
||||
use crate::errors::ProofError;
|
||||
use crate::range_proof::util;
|
||||
use crate::transcript::TranscriptProtocol;
|
||||
|
||||
use merlin::Transcript;
|
||||
use {
|
||||
crate::{errors::ProofError, range_proof::util, transcript::TranscriptProtocol},
|
||||
core::iter,
|
||||
curve25519_dalek::{
|
||||
ristretto::{CompressedRistretto, RistrettoPoint},
|
||||
scalar::Scalar,
|
||||
traits::VartimeMultiscalarMul,
|
||||
},
|
||||
merlin::Transcript,
|
||||
std::borrow::Borrow,
|
||||
};
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[derive(Clone)]
|
||||
|
|
|
@ -7,8 +7,9 @@ use {
|
|||
};
|
||||
use {
|
||||
crate::{
|
||||
encryption::pedersen::PedersenBase, errors::ProofError,
|
||||
range_proof::generators::BulletproofGens, range_proof::inner_product::InnerProductProof,
|
||||
encryption::pedersen::PedersenBase,
|
||||
errors::ProofError,
|
||||
range_proof::{generators::BulletproofGens, inner_product::InnerProductProof},
|
||||
transcript::TranscriptProtocol,
|
||||
},
|
||||
core::iter,
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
use curve25519_dalek::ristretto::CompressedRistretto;
|
||||
use curve25519_dalek::scalar::Scalar;
|
||||
use curve25519_dalek::traits::IsIdentity;
|
||||
|
||||
use merlin::Transcript;
|
||||
|
||||
use crate::errors::ProofError;
|
||||
use {
|
||||
crate::errors::ProofError,
|
||||
curve25519_dalek::{ristretto::CompressedRistretto, scalar::Scalar, traits::IsIdentity},
|
||||
merlin::Transcript,
|
||||
};
|
||||
|
||||
pub trait TranscriptProtocol {
|
||||
/// Append a domain separator for an `n`-bit rangeproof for ElGamalKeypair
|
||||
|
|
|
@ -15,9 +15,11 @@ mod target_arch {
|
|||
use {
|
||||
super::pod,
|
||||
crate::{
|
||||
encryption::aes::AesCiphertext,
|
||||
encryption::elgamal::{ElGamalCiphertext, ElGamalPubkey},
|
||||
encryption::pedersen::{PedersenCommitment, PedersenDecryptHandle},
|
||||
encryption::{
|
||||
aes::AesCiphertext,
|
||||
elgamal::{ElGamalCiphertext, ElGamalPubkey},
|
||||
pedersen::{PedersenCommitment, PedersenDecryptHandle},
|
||||
},
|
||||
errors::ProofError,
|
||||
range_proof::RangeProof,
|
||||
},
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
use std::fmt;
|
||||
|
||||
pub use bytemuck::{Pod, Zeroable};
|
||||
use std::fmt;
|
||||
|
||||
#[derive(Clone, Copy, Pod, Zeroable, PartialEq)]
|
||||
#[repr(transparent)]
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
///! Instructions provided by the ZkToken Proof program
|
||||
pub use crate::instruction::*;
|
||||
|
||||
use {
|
||||
bytemuck::{bytes_of, Pod},
|
||||
num_derive::{FromPrimitive, ToPrimitive},
|
||||
|
|
Loading…
Reference in New Issue