Ensure that transparent input functionality is correctly feature-flagged.
This commit is contained in:
parent
a7ea5f0bc1
commit
4dac37ffde
|
@ -2,16 +2,18 @@ use std::fmt::Debug;
|
|||
use zcash_primitives::{
|
||||
consensus::{self, NetworkUpgrade},
|
||||
memo::MemoBytes,
|
||||
sapling::{keys::OutgoingViewingKey, prover::TxProver},
|
||||
sapling::prover::TxProver,
|
||||
transaction::{
|
||||
builder::Builder,
|
||||
components::{amount::DEFAULT_FEE, Amount},
|
||||
Transaction,
|
||||
},
|
||||
transparent,
|
||||
zip32::{ExtendedFullViewingKey, ExtendedSpendingKey},
|
||||
};
|
||||
|
||||
#[cfg(feature = "transparent-inputs")]
|
||||
use zcash_primitives::{sapling::keys::OutgoingViewingKey, transparent};
|
||||
|
||||
use crate::{
|
||||
address::RecipientAddress,
|
||||
data_api::{
|
||||
|
|
|
@ -40,7 +40,7 @@ proptest = { version = "1.0.0", optional = true }
|
|||
rand = "0.8"
|
||||
rand_core = "0.6"
|
||||
ripemd160 = { version = "0.9", optional = true }
|
||||
secp256k1 = "0.20"
|
||||
secp256k1 = { version = "0.20", optional = true }
|
||||
sha2 = "0.9"
|
||||
subtle = "2.2.3"
|
||||
zcash_address = { version = "0.0", path = "../components/zcash_address" }
|
||||
|
@ -61,7 +61,7 @@ orchard = { version = "=0.1.0-beta.1", features = ["test-dependencies"] }
|
|||
pprof = { version = "=0.6.1", features = ["criterion", "flamegraph"] }
|
||||
|
||||
[features]
|
||||
transparent-inputs = ["ripemd160"]
|
||||
transparent-inputs = ["ripemd160", "hdwallet", "secp256k1"]
|
||||
test-dependencies = ["proptest", "orchard/test-dependencies"]
|
||||
zfuture = []
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ pub mod memo;
|
|||
pub mod merkle_tree;
|
||||
pub mod sapling;
|
||||
pub mod transaction;
|
||||
#[cfg(feature = "transparent-inputs")]
|
||||
pub mod transparent;
|
||||
pub mod zip32;
|
||||
pub mod zip339;
|
||||
|
|
Loading…
Reference in New Issue