mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
removed more unused imports that were overwritten by conflict
This commit is contained in:
@@ -5,13 +5,12 @@ use rand::rngs::OsRng;
|
||||
use std::path::Path;
|
||||
|
||||
use sapvi::crypto::{
|
||||
node::{hash_coin, Node},
|
||||
create_mint_proof, create_spend_proof, load_params,
|
||||
load_params,
|
||||
merkle::{CommitmentTree, IncrementalWitness},
|
||||
node::{hash_coin, Node},
|
||||
note::{EncryptedNote, Note},
|
||||
nullifier::Nullifier,
|
||||
save_params, setup_mint_prover, setup_spend_prover, verify_mint_proof, verify_spend_proof,
|
||||
MintRevealedValues, SpendRevealedValues,
|
||||
save_params, setup_mint_prover, setup_spend_prover,
|
||||
};
|
||||
use sapvi::serial::{Decodable, Encodable};
|
||||
use sapvi::state::{state_transition, ProgramState, StateUpdates};
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
pub mod node;
|
||||
pub mod diffie_hellman;
|
||||
pub mod fr_serial;
|
||||
pub mod merkle;
|
||||
pub mod mint_proof;
|
||||
pub mod node;
|
||||
pub mod note;
|
||||
pub mod nullifier;
|
||||
pub mod schnorr;
|
||||
|
||||
@@ -3,12 +3,7 @@ use bls12_381::Bls12;
|
||||
use std::fmt;
|
||||
|
||||
use crate::{
|
||||
crypto::{
|
||||
node::Node,
|
||||
note::{EncryptedNote, Note},
|
||||
nullifier::Nullifier,
|
||||
},
|
||||
error::{Error, Result},
|
||||
crypto::{node::Node, note::EncryptedNote, nullifier::Nullifier},
|
||||
tx,
|
||||
};
|
||||
|
||||
|
||||
@@ -7,16 +7,8 @@ use super::{
|
||||
partial::{PartialTransaction, PartialTransactionClearInput, PartialTransactionInput},
|
||||
Transaction, TransactionClearInput, TransactionInput, TransactionOutput,
|
||||
};
|
||||
use crate::crypto::{
|
||||
node::Node,
|
||||
create_mint_proof, create_spend_proof, load_params,
|
||||
merkle::CommitmentTree,
|
||||
note::{EncryptedNote, Note},
|
||||
save_params, schnorr, setup_mint_prover, setup_spend_prover, verify_mint_proof,
|
||||
verify_spend_proof, MintRevealedValues, SpendRevealedValues,
|
||||
};
|
||||
use crate::error::{Error, Result};
|
||||
use crate::serial::{Decodable, Encodable, VarInt};
|
||||
use crate::crypto::{create_mint_proof, create_spend_proof, note::Note, schnorr};
|
||||
use crate::serial::Encodable;
|
||||
|
||||
pub struct TransactionBuilder {
|
||||
pub clear_inputs: Vec<TransactionBuilderClearInputInfo>,
|
||||
|
||||
@@ -2,16 +2,9 @@ use bellman::groth16;
|
||||
use bls12_381::Bls12;
|
||||
use std::io;
|
||||
|
||||
use super::{Transaction, TransactionClearInput, TransactionInput, TransactionOutput};
|
||||
use crate::crypto::{
|
||||
node::Node,
|
||||
create_mint_proof, create_spend_proof, load_params,
|
||||
merkle::CommitmentTree,
|
||||
note::{EncryptedNote, Note},
|
||||
save_params, schnorr, setup_mint_prover, setup_spend_prover, verify_mint_proof,
|
||||
verify_spend_proof, MintRevealedValues, SpendRevealedValues,
|
||||
};
|
||||
use crate::error::{Error, Result};
|
||||
use super::TransactionOutput;
|
||||
use crate::crypto::SpendRevealedValues;
|
||||
use crate::error::Result;
|
||||
use crate::impl_vec;
|
||||
use crate::serial::{Decodable, Encodable, VarInt};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user