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

How to use plonkit to verify proof for given public inputs? #8

Closed
bitcartel opened this issue Jan 12, 2021 · 1 comment
Closed

How to use plonkit to verify proof for given public inputs? #8

bitcartel opened this issue Jan 12, 2021 · 1 comment

Comments

@bitcartel
Copy link

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.

@lispc
Copy link
Member

lispc commented Jan 13, 2021

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

@lispc lispc closed this as completed Jan 28, 2021
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

No branches or pull requests

2 participants