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

helper function: Circuit::test_proof_and_verify() #772

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

therealyingtong
Copy link
Collaborator

No description provided.

The constant value is passed in through the MyCircuit struct.
In MyCircuit::without_witnesses(), this constant is set to F::ZERO
(F::default()). Because keygen uses without_witnesses() to define
the circuit, the constant value is set to zero in ConstraintSystem;
however, at proving time, MyCircuit passes in a nonzero constant.
This causes the equality constraint in assign_advice_from_constant
to fail.

In general, fixed values should be copied in without_witnesses().
@therealyingtong therealyingtong added A-documentation Area: Improvements or additions to documentation A-dev-tooling Area: Developer tooling labels Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-dev-tooling Area: Developer tooling A-documentation Area: Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant