modifying circomcompat for use with asyncthreading
This commit is contained in:
parent
7949a253ce
commit
eb75887631
|
@ -50,7 +50,8 @@ proc prove*(
|
||||||
self: Prover,
|
self: Prover,
|
||||||
slotIdx: int,
|
slotIdx: int,
|
||||||
manifest: Manifest,
|
manifest: Manifest,
|
||||||
challenge: ProofChallenge): Future[?!(AnyProofInputs, AnyProof)] {.async.} =
|
challenge: ProofChallenge
|
||||||
|
): Future[?!(AnyProofInputs, AnyProof)] {.async.} =
|
||||||
## Prove a statement using backend.
|
## Prove a statement using backend.
|
||||||
## Returns a future that resolves to a proof.
|
## Returns a future that resolves to a proof.
|
||||||
|
|
||||||
|
@ -83,7 +84,8 @@ proc prove*(
|
||||||
proc verify*(
|
proc verify*(
|
||||||
self: Prover,
|
self: Prover,
|
||||||
proof: AnyProof,
|
proof: AnyProof,
|
||||||
inputs: AnyProofInputs): Future[?!bool] {.async.} =
|
inputs: AnyProofInputs
|
||||||
|
): Future[?!bool] {.async.} =
|
||||||
## Prove a statement using backend.
|
## Prove a statement using backend.
|
||||||
## Returns a future that resolves to a proof.
|
## Returns a future that resolves to a proof.
|
||||||
|
|
||||||
|
@ -93,7 +95,8 @@ proc new*(
|
||||||
_: type Prover,
|
_: type Prover,
|
||||||
store: BlockStore,
|
store: BlockStore,
|
||||||
backend: AnyBackend,
|
backend: AnyBackend,
|
||||||
nSamples: int): Prover =
|
nSamples: int
|
||||||
|
): Prover =
|
||||||
|
|
||||||
Prover(
|
Prover(
|
||||||
backend: backend,
|
backend: backend,
|
||||||
|
|
Loading…
Reference in New Issue