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

fix publics bug halo2 #1814

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

fix publics bug halo2 #1814

wants to merge 1 commit into from

Conversation

leonardoalt
Copy link
Member

@leonardoalt leonardoalt commented Sep 19, 2024

Fixes a bug where circuits with publics can't be verified properly. This was caused by a difference in the circuit when the verification key is generated (without witnesses) vs when the user requests a proof (with).

@Schaeff
Copy link
Collaborator

Schaeff commented Sep 20, 2024

I'm confused about this:

  • why was this not failing anywhere in CI? Can we avoid that now?
  • why does passing a witness and callback or not make a difference? This seems like a bug?

@chriseth
Copy link
Member

Can you add a test for the example in the documentation?

@leonardoalt
Copy link
Member Author

why was this not failing anywhere in CI? Can we avoid that now?

It only fails for the public case, my assumption is no tests with publics + halo2 proofs?

why does passing a witness and callback or not make a difference? This seems like a bug?

It somehow changes the verification key. I don't know if the PowdrCircuit struct changes which leads to the underlying Halo2 data structures changing, or if internally Halo2 generates a different VK because a witness already exists.

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.

3 participants