Fixed libsnark feature conditional compilation
This commit is contained in:
parent
1c0ab7c9a2
commit
74e98a7348
1 changed files with 5 additions and 4 deletions
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue