-
Notifications
You must be signed in to change notification settings - Fork 26
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
How to use plonkit to verify proof for given public inputs? #8
Comments
Yes. Proof.bin contains both proof and input. These two *.json are mainly used for ETH contract. https://github.com/Fluidex/plonkit/blob/953229b2b8fe1e903694e4691210a4ad334ac2bd/src/main.rs#L216 Welcome to our tech telegram group~ https://t.me/fluid_dex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After calling
plonkit prove
I have proof.bin, proof.json, public.json.Public.json contains the public inputs and the public output of the circuit, correct? So how I can verify the proof is valid for that public data? That is, if i change the public inputs the proof should fail verification.
I'm envisaging something similar to this:
snarkjs groth16 verify verification_key.json public.json proof.json
e.g.
plonkit verify vk.bin public.json proof.json
But current verification only requires proof.bin, e.g. `plonkit verify proof.bin vk.bin'. What is stored in proof.bin? Does it already contain the public inputs and outputs too? Thanks.
The text was updated successfully, but these errors were encountered: