Content pfp
Content
@
0 reply
0 recast
0 reaction

Vitalik Buterin pfp
Vitalik Buterin
@vitalik.eth
When debugging a ZKP verifier, make sure to keep checking not just that the proof verifies on valid inputs, but also that the proof verification returns an error on invalid inputs (or with nonsensical tweaks to the verification mechanism).
77 replies
1838 recasts
7258 reactions

Emmanuel Awosika  pfp
Emmanuel Awosika
@eawosika
I guess this is how you catch unconstrained circuit bugs? I can imagine there's some proof circuit that checks that the square of a number is 9, but doesn’t check if it should be 3 or -3. What you're suggesting here should catch the bug if we only want it to be 3, no?
1 reply
0 recast
15 reactions

Ben Green pfp
Ben Green
@numtel
That's debugging your circuit source, not the verifier. Check out circomspect or (for a more general solution) formal verification https://github.com/trailofbits/circomspect
0 reply
0 recast
0 reaction