wire in prove
This commit is contained in:
parent
1e86b5c051
commit
96862372e5
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue