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

Carlo/halo2 pi #98

Merged
merged 6 commits into from
May 25, 2023
Merged

Carlo/halo2 pi #98

merged 6 commits into from
May 25, 2023

Conversation

CarloModicaPortfolio
Copy link
Contributor

No description provided.

@AHartNtkn
Copy link
Collaborator

I looked through your code and tested it myself, and everything seems fine, but I can't tell what differences in behavior there are. Does this change how Vamp-IR behaves? Does this just pipe public inputs into the instance columns during halo2 proof creation?

@CarloModicaPortfolio
Copy link
Contributor Author

Before this modification Vamp-IR, when used with halo2 as a backend, was not handling public inputs correctly, as it was treating all inputs as private. So now it is treating public variables as they should, filling the instances column. More so, the prover returns together with the proof also the serilized public inputs to the verifier, which without them could not verify the proof

@AHartNtkn
Copy link
Collaborator

Thank you. How would your changes be tested?

@lopeetall lopeetall requested review from XuyangSong and bazzilic May 24, 2023 20:44
@lopeetall
Copy link
Contributor

can @XuyangSong or @bazzilic test this out and see if it solves the issue?

Copy link

@XuyangSong XuyangSong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I've tested it. It looks good.
I found you added a gate and a copy to handle the public input. Could we just use the underlying constrain_instance function in Halo2 to publicize the variables?
I've updated the Taiga code and test. @bazzilic

@bazzilic
Copy link

LGTM apart from @XuyangSong 's concern about constrain_instance ☝️
Also, it might be useful if inputs are not packed into the same file with proof and are instead a separate JSON file.

Copy link
Collaborator

@AHartNtkn AHartNtkn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it all looks good, I'll merge it. Those suggestions should be turned into issues with the "enhancement" label.

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.

5 participants