modifying circomcompat for use with asyncthreading

This commit is contained in:
Jaremy Creechley 2024-05-16 21:27:28 +03:00
parent 7949a253ce
commit eb75887631
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
1 changed files with 6 additions and 3 deletions

View File

@ -50,7 +50,8 @@ proc prove*(
self: Prover,
slotIdx: int,
manifest: Manifest,
challenge: ProofChallenge): Future[?!(AnyProofInputs, AnyProof)] {.async.} =
challenge: ProofChallenge
): Future[?!(AnyProofInputs, AnyProof)] {.async.} =
## Prove a statement using backend.
## Returns a future that resolves to a proof.
@ -83,7 +84,8 @@ proc prove*(
proc verify*(
self: Prover,
proof: AnyProof,
inputs: AnyProofInputs): Future[?!bool] {.async.} =
inputs: AnyProofInputs
): Future[?!bool] {.async.} =
## Prove a statement using backend.
## Returns a future that resolves to a proof.
@ -93,7 +95,8 @@ proc new*(
_: type Prover,
store: BlockStore,
backend: AnyBackend,
nSamples: int): Prover =
nSamples: int
): Prover =
Prover(
backend: backend,