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

Commits on Apr 28, 2023

  1. Configuration menu
    Copy the full SHA
    dd4da39 View commit details
    Browse the repository at this point in the history
  2. simple-example: Failing to verify real proof

    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 committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    01c2f62 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5c84d46 View commit details
    Browse the repository at this point in the history