adding usefull traces

This commit is contained in:
Dmitriy Ryajov 2024-02-12 20:41:35 -06:00
parent 24affef5e6
commit 78b7dc93dd
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
1 changed files with 2 additions and 0 deletions

View File

@ -608,11 +608,13 @@ proc onProve(
error "Proof verification failed"
return failure("Proof verification failed")
trace "Proof verified successfully"
else:
without (_, proof) =? await prover.prove(slotIdx, manifest, challenge), err:
error "Unable to generate proof", err = err.msg
return failure(err)
trace "Proof generated successfully"
success proof.toGroth16Proof()
else:
warn "Prover not enabled"