-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change to zkSNARKs based on groth's generic group construction probably breaks something #55
Comments
For completeness, this is the example code from #53:
|
The assertion that is failing is here: I suspect that when a computation has no constraints with degree 2, the polynomial H degenerates, which causes the assertion to fail. For example, adding this line to example.c:
causes the program to run without error, with the output as expected. Commenting out the assertion also makes the original computation work. So this may be a bug in the libsnark library; perhaps the assertion should be removed or conditional on the constraint system containing at least one degree-2 constraint. |
When submitting #53, my code used pequin @ 8813e51. After the fix for #53, I rebuilt the docker container for the current version @ 312e37e. But there, the same basic example that I used in #53 does compile, but proving fails with the following message:
The text was updated successfully, but these errors were encountered: