mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-31 20:41:22 +00:00
Clean up librustzcash imports
This commit is contained in:
@@ -1,38 +1,20 @@
|
|||||||
// Catch documentation errors caused by code changes.
|
// Catch documentation errors caused by code changes.
|
||||||
#![deny(intra_doc_link_resolution_failure)]
|
#![deny(intra_doc_link_resolution_failure)]
|
||||||
|
|
||||||
use lazy_static;
|
use bellman::{
|
||||||
|
gadgets::multipack,
|
||||||
use ff::{PrimeField, PrimeFieldRepr};
|
groth16::{create_random_proof, verify_proof, Parameters, PreparedVerifyingKey, Proof},
|
||||||
use pairing::bls12_381::{Bls12, Fr, FrRepr};
|
|
||||||
|
|
||||||
use zcash_primitives::{
|
|
||||||
constants::CRH_IVK_PERSONALIZATION,
|
|
||||||
jubjub::{
|
|
||||||
edwards,
|
|
||||||
fs::{Fs, FsRepr},
|
|
||||||
FixedGenerators, JubjubEngine, JubjubParams, PrimeOrder, ToUniform, Unknown,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
use zcash_proofs::circuit::sapling::TREE_DEPTH as SAPLING_TREE_DEPTH;
|
|
||||||
use zcash_proofs::circuit::sprout::{self, TREE_DEPTH as SPROUT_TREE_DEPTH};
|
|
||||||
|
|
||||||
use bellman::gadgets::multipack;
|
|
||||||
use bellman::groth16::{
|
|
||||||
create_random_proof, verify_proof, Parameters, PreparedVerifyingKey, Proof,
|
|
||||||
};
|
|
||||||
|
|
||||||
use blake2s_simd::Params as Blake2sParams;
|
use blake2s_simd::Params as Blake2sParams;
|
||||||
|
|
||||||
use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
|
use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
|
||||||
|
use ff::{PrimeField, PrimeFieldRepr};
|
||||||
use rand_core::{OsRng, RngCore};
|
use lazy_static;
|
||||||
use std::io::BufReader;
|
|
||||||
|
|
||||||
use libc::{c_char, c_uchar, size_t};
|
use libc::{c_char, c_uchar, size_t};
|
||||||
|
use pairing::bls12_381::{Bls12, Fr, FrRepr};
|
||||||
|
use rand_core::{OsRng, RngCore};
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
|
use std::io::BufReader;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::slice;
|
use std::slice;
|
||||||
|
|
||||||
@@ -48,6 +30,12 @@ use std::os::windows::ffi::OsStringExt;
|
|||||||
|
|
||||||
use zcash_primitives::{
|
use zcash_primitives::{
|
||||||
block::equihash,
|
block::equihash,
|
||||||
|
constants::CRH_IVK_PERSONALIZATION,
|
||||||
|
jubjub::{
|
||||||
|
edwards,
|
||||||
|
fs::{Fs, FsRepr},
|
||||||
|
FixedGenerators, JubjubEngine, JubjubParams, PrimeOrder, ToUniform, Unknown,
|
||||||
|
},
|
||||||
merkle_tree::CommitmentTreeWitness,
|
merkle_tree::CommitmentTreeWitness,
|
||||||
note_encryption::sapling_ka_agree,
|
note_encryption::sapling_ka_agree,
|
||||||
primitives::{Diversifier, Note, PaymentAddress, ProofGenerationKey, ViewingKey},
|
primitives::{Diversifier, Note, PaymentAddress, ProofGenerationKey, ViewingKey},
|
||||||
@@ -57,6 +45,10 @@ use zcash_primitives::{
|
|||||||
zip32, JUBJUB,
|
zip32, JUBJUB,
|
||||||
};
|
};
|
||||||
use zcash_proofs::{
|
use zcash_proofs::{
|
||||||
|
circuit::{
|
||||||
|
sapling::TREE_DEPTH as SAPLING_TREE_DEPTH,
|
||||||
|
sprout::{self, TREE_DEPTH as SPROUT_TREE_DEPTH},
|
||||||
|
},
|
||||||
load_parameters,
|
load_parameters,
|
||||||
sapling::{SaplingProvingContext, SaplingVerificationContext},
|
sapling::{SaplingProvingContext, SaplingVerificationContext},
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user