Move Sprout and Sapling circuits into zcash_proofs

This commit is contained in:
Jack Grigg
2019-08-05 22:45:12 +01:00
parent 7ea6d10480
commit 2ae5804a67
16 changed files with 63 additions and 48 deletions

View File

@@ -14,8 +14,7 @@ use crate::merkle_tree::Hashable;
use crate::redjubjub::{PrivateKey, PublicKey, Signature};
use JUBJUB;
pub(crate) const SAPLING_COMMITMENT_TREE_DEPTH: usize =
sapling_crypto::circuit::sapling::TREE_DEPTH;
pub const SAPLING_COMMITMENT_TREE_DEPTH: usize = 32;
/// Compute a parent node in the Sapling commitment tree given its two children.
pub fn merkle_hash(depth: usize, lhs: &FrRepr, rhs: &FrRepr) -> FrRepr {