Skip to content

distributed-lab/plonky2-verifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plonky2 Verifier

License: GPL v3 Rust CI🌌 Docs 🌌

A verifier for plonky2 proofs.

This rust crate provides functionality to deserialize and verify proof, public inputs and verification key.

plonky2-converter

Plonky2 has a certain number of generics for its constraint system, such as used field, hasher etc. Since we are limited by the nature of passing them in zkVerify, we use a custom format of Vk.

For that reason, this crate also provides a binary to convert verification keys into acceptable by zkVerify format.

Furthermore, to bring support for compressed proofs from plonky2, we use a custom format of Proof.

Install:

cargo install --features converter --path .

Usage:

plonky2-converter --help
Converts plonky2 formats

Usage: 

Commands:
  vk     Serialize VerifierCircuitData into zkVerify format
  proof  Serialize Proof or CompressedProof into zkVerify format
  help   Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

License

This code is released under the GPL 3.0 license.