Skip to content

Commit

Permalink
remove println
Browse files Browse the repository at this point in the history
  • Loading branch information
philsippl committed Nov 18, 2023
1 parent 62a3b3b commit a7b73a0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/protocol/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,17 +159,12 @@ fn generate_proof_rs(
)
});

let now = Instant::now();

let full_assignment = witness_calculator(depth)
.lock()
.expect("witness_calculator mutex should not get poisoned")
.calculate_witness_element::<Bn254, _>(inputs, false)
.map_err(ProofError::WitnessError)?;

println!("witness generation took: {:.2?}", now.elapsed());

let now = Instant::now();
let zkey = zkey(depth);
let ark_proof = create_proof_with_reduction_and_matrices::<_, CircomReduction>(
&zkey.0,
Expand All @@ -181,7 +176,6 @@ fn generate_proof_rs(
full_assignment.as_slice(),
)?;
let proof = ark_proof.into();
println!("proof generation took: {:.2?}", now.elapsed());

Ok(proof)
}
Expand Down

0 comments on commit a7b73a0

Please sign in to comment.