diff --git a/groth16/partial/finish.nim b/groth16/partial/finish.nim index e332060..51fbb26 100644 --- a/groth16/partial/finish.nim +++ b/groth16/partial/finish.nim @@ -36,7 +36,6 @@ proc finishPartialProofWithMask*( zkey: ZKey, wtns: Witness, partialProof: Parti # echo( "wtns.curve = " & ($wtns.curve ) ) assert( zkey.header.curve == wtns.curve ) - var start : float = 0 let witness = wtns.values @@ -89,12 +88,10 @@ proc finishPartialProofWithMask*( zkey: ZKey, wtns: Witness, partialProof: Parti compact_pointsC1[k] = pts.pointsC1[ i - startIdx ] k += 1 - start = cpuTime() var abc : ABC withMeasureTime(printTimings,"building 'ABC'"): abc = buildABC( zkey, witness ) - start = cpuTime() var qs : seq[Fr[BN254_Snarks]] withMeasureTime(printTimings,"computing the quotient (FFTs)"): case zkey.header.flavour diff --git a/groth16/partial/precalc.nim b/groth16/partial/precalc.nim index b0f8d68..c9e1f7d 100644 --- a/groth16/partial/precalc.nim +++ b/groth16/partial/precalc.nim @@ -37,7 +37,6 @@ proc generatePartialProof*( zkey: ZKey, pwtns: PartialWitness, pool: Taskpool, p {.fatal: "Compile with arc/orc!".} # assert( zkey.header.curve == wtns.curve ) - var start : float = 0 let partial_witness = pwtns.values @@ -96,12 +95,10 @@ proc generatePartialProof*( zkey: ZKey, pwtns: PartialWitness, pool: Taskpool, p k += 1 #[ - start = cpuTime() var abc : ABC withMeasureTime(printTimings,"building 'ABC'"): abc = buildABC( zkey, witness ) - start = cpuTime() var qs : seq[Fr[BN254_Snarks]] withMeasureTime(printTimings,"computing the quotient (FFTs)"): case zkey.header.flavour diff --git a/groth16/prover/groth16.nim b/groth16/prover/groth16.nim index 02e084d..cbae72f 100644 --- a/groth16/prover/groth16.nim +++ b/groth16/prover/groth16.nim @@ -41,7 +41,6 @@ proc generateProofWithMask*( zkey: ZKey, wtns: Witness, mask: Mask, pool: Taskpo # echo( "wtns.curve = " & ($wtns.curve ) ) assert( zkey.header.curve == wtns.curve ) - var start : float = 0 let witness = wtns.values @@ -58,12 +57,10 @@ proc generateProofWithMask*( zkey: ZKey, wtns: Witness, mask: Mask, pool: Taskpo var pubIO = newSeq[Fr[BN254_Snarks]]( npubs + 1) for i in 0..npubs: pubIO[i] = witness[i] - start = cpuTime() var abc : ABC withMeasureTime(printTimings,"building 'ABC'"): abc = buildABC( zkey, witness ) - start = cpuTime() var qs : seq[Fr[BN254_Snarks]] withMeasureTime(printTimings,"computing the quotient (FFTs)"): case zkey.header.flavour