Expand description
Types and utilities for reading Circom-generated files into arkworks representations.
This crate provides deserialization support for Circom’s binary and JSON formats, including proofs, verification keys, witnesses, R1CS constraint systems, and zkeys for both Groth16 and PLONK proof systems.
Re-exports§
pub use ark_bn254;
Modules§
- groth16
- This module defines types related to Groth16 used in Circom and utilities to read these types from files.
- traits
- Traits for converting Circom file formats to arkworks types.
Structs§
- R1CS
- Struct representing a R1CS file produced by Circom that implements
R1CS::from_readerfor parsing the R1CS file format used by Circom. - Witness
- Represents a witness in the format defined by Circom. Implements
Witness::from_readerto deserialize a witness from a reader.
Enums§
- Check
Element - Indicates whether we should check if deserialized are valid
points on the curves.
Noindicates to skip those checks, which is by orders of magnitude faster, but could potentially result in undefined behaviour. Use only with care. - R1CS
Parser Error - Error type describing errors during parsing R1CS files
- Witness
Parser Error - Error type describing errors during parsing witness files
- Zkey
Parser Error - Error type describing errors during parsing zkey files