Skip to main content

Crate taceo_groth16

Crate taceo_groth16 

Source

Structs§

CircomReduction
Implements the witness map used by snarkjs. The arkworks witness map calculates the coefficients of H through computing (AB-C)/Z in the evaluation domain and going back to the coefficients domain. snarkjs instead precomputes the Lagrange form of the powers of tau bases in a domain twice as large and the witness map is computed as the odd coefficients of (AB-C) in that domain. This serves as HZ when computing the C proof element.
ConstraintMatrices
The A, B and C matrices of a Rank-One ConstraintSystem. Also contains metadata on the structure of the constraint system and the matrices.
Groth16
A Groth16 proof protocol.
LibSnarkReduction
Implements the witness map used by libsnark. The arkworks witness map calculates the coefficients of H through computing (AB-C)/Z in the evaluation domain and going back to the coefficients domain.
Proof
A proof in the Groth16 SNARK.
ProvingKey
The prover key for for the Groth16 zkSNARK.
VerifyingKey
A verification key in the Groth16 SNARK.

Traits§

R1CSToQAP
This trait is used to convert the witness into QAP witness as part of a Groth16 proof. Refer to https://docs.rs/ark-groth16/latest/ark_groth16/r1cs_to_qap/trait.R1CSToQAP.html for more details. We do not implement the other methods of the arkworks trait, as we do not need them during proof generation.