wire in prove

This commit is contained in:
Jaremy Creechley 2024-05-17 01:03:19 +03:00
parent 1e86b5c051
commit 96862372e5
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
1 changed files with 2 additions and 5 deletions

View File

@ -11,11 +11,6 @@ import ../../../utils/asyncthreads
import ./circomcompat import ./circomcompat
const
CompletionTimeout = 1.seconds
# Maximum await time for completition after receiving a signal
CompletionRetryDelay = 10.millis
type type
AsyncCircomCompat* = object AsyncCircomCompat* = object
params*: CircomCompatParams params*: CircomCompatParams
@ -35,6 +30,8 @@ proc proveTask[H](
try: try:
if circomBackend.isNone: if circomBackend.isNone:
circomBackend = some CircomCompat.init(args.params) circomBackend = some CircomCompat.init(args.params)
else:
assert circomBackend.get().params == args.params
let res = circomBackend.get().prove(data) let res = circomBackend.get().prove(data)
if res.isOk: if res.isOk: