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

Talk about input constraint trick #7

Open
erhant opened this issue May 30, 2024 · 0 comments
Open

Talk about input constraint trick #7

erhant opened this issue May 30, 2024 · 0 comments

Comments

@erhant
Copy link
Owner

erhant commented May 30, 2024

When a single input does not really contribute to the constraint itself, but you would still like it to be bound to the proof, you may need to constraint it in a dummy way.

For example, suppose you want the proof to include the private input a but that input is not used in the circuit at all. If you simply keep it as a input, Circom may remove it from the constraint system as it is not used. You may want to introduce a dummy signal such as:

signal tmp <== a * a;

This will ensure a is part of a non-linear constraint.

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