Move Sapling proving and binding signature into zcash_proofs crate

This commit is contained in:
Jack Grigg
2018-12-01 00:10:51 +00:00
parent 922ffe6002
commit e378229bdd
7 changed files with 411 additions and 281 deletions
+3 -1
View File
@@ -3,12 +3,14 @@ use sapling_crypto::jubjub::{
edwards, fs::FsRepr, FixedGenerators, JubjubBls12, JubjubParams, Unknown,
};
mod prover;
mod verifier;
pub use self::prover::{CommitmentTreeWitness, SaplingProvingContext};
pub use self::verifier::SaplingVerificationContext;
// This function computes `value` in the exponent of the value commitment base
pub fn compute_value_balance(
fn compute_value_balance(
value: i64,
params: &JubjubBls12,
) -> Option<edwards::Point<Bls12, Unknown>> {