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

Document boolean constraint requirement for gates. #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BlakeMScurr
Copy link

Users might naturally assume that they can use gates with non binary inputs. For example, you might assume that Or of two non zero numbers is non zero, or perhaps 1. In fact it is not tightly constrained, and can even be 0 if a = 2 and b = 2.

This documents which circuits don't extend to non binary inputs, and gives a specific example of why not.

piotr-roslaniec pushed a commit to piotr-roslaniec/circomlib that referenced this pull request Sep 18, 2024
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

Successfully merging this pull request may close these issues.

1 participant