1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00

Fixed libsnark feature conditional compilation

This commit is contained in:
Jacob Eberhardt 2017-08-22 16:53:02 +02:00
parent 1c0ab7c9a2
commit 74e98a7348

View file

@ -84,10 +84,11 @@ fn main() {
println!("witness {:?}", witness);
// run libsnark
#[cfg(not(feature="nolibsnark"))]
// number of inputs in the zkSNARK sense, i.e., input variables + output variables
let num_inputs = args_provided.len() + 1; //currently exactly one output variable
println!("run_libsnark = {:?}", run_libsnark(variables, a, b, c, witness, num_inputs));
#[cfg(not(feature="nolibsnark"))]{
// number of inputs in the zkSNARK sense, i.e., input variables + output variables
let num_inputs = args_provided.len() + 1; //currently exactly one output variable
println!("run_libsnark = {:?}", run_libsnark(variables, a, b, c, witness, num_inputs));
}
}
#[cfg(test)]