Skip to content
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

Section 3: Incorrect NAND Square Constraint System #16

Open
preston-evans98 opened this issue Aug 4, 2020 · 0 comments
Open

Section 3: Incorrect NAND Square Constraint System #16

preston-evans98 opened this issue Aug 4, 2020 · 0 comments

Comments

@preston-evans98
Copy link

The constraint for NAND in Section 3, subsection Encoding Boolean Circuits appears to be incorrect.

The current constraint (2a + 2b - 5c + 4)^2 = 1 yields an incorrect result when a = b = 1. Then NAND is false, so c = 0.

(2(1) + 2(1) - 5(0) + 4)^2 = 8^2 = 64 != 1.

Danezis, Fournet, Groth, and Kohlweiss use the constraint a + b − 2(~c) ∈ {0, 1}, which should be equivalent to (2a + 2b - 4(~c) -1)^2 = 1 or (2a + 2b + 4c - 5)^2 = 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant