verifier failing now

This commit is contained in:
Jaremy Creechley 2024-06-03 14:34:21 +01:00
parent 76e0e77cb7
commit 59300059b4
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
3 changed files with 8 additions and 5 deletions

View File

@ -68,7 +68,10 @@ proc prove*[H](
success(proof)
proc verifyTask[H](args: ptr VerifierArgs[H], results: SignalQueuePtr[?!bool]) =
let verified = args.circom.verify(args.proof, args.inputs)
let circom = args.circom
let proof = args.proof
let inputs = args.inputs
let verified = circom.verify(proof, inputs)
if (let sent = results.send(verified); sent.isErr()):
error "Error sending verification results", msg = sent.error().msg
@ -85,7 +88,7 @@ proc verify*[H](
GC_ref(args)
proc spawnTask() =
self.tp.spawn verifyTask(args[].addr, inputs, queue)
self.tp.spawn verifyTask(args[].addr, queue)
spawnTask()

View File

@ -88,10 +88,10 @@ suite "Test Prover":
prover = Prover.new(store, circomBackend, samples)
var proofs = newSeq[Future[?!(AnyProofInputs, AnyProof)]]()
for i in 1..50:
for i in 1..10:
echo "PROVE: ", i
let
challenge = (1234567+i).toF.toBytes.toArray32
challenge = (1234567).toF.toBytes.toArray32
proofs.add(prover.prove(1, verifiable, challenge))

@ -1 +1 @@
Subproject commit 4467e310b75aa0749ff28c1572a84ffce57d7c1c
Subproject commit 5fbd14aab035e570e22a27999ddf13b071245e69