Struct ark_groth16::r1cs_to_qap::LibsnarkReduction
source · pub struct LibsnarkReduction;
Expand description
Computes the R1CS-to-QAP reduction defined in libsnark
.
Trait Implementations§
source§impl R1CSToQAP for LibsnarkReduction
impl R1CSToQAP for LibsnarkReduction
source§fn instance_map_with_evaluation<F: PrimeField, D: EvaluationDomain<F>>(
cs: ConstraintSystemRef<F>,
t: &F
) -> R1CSResult<(Vec<F>, Vec<F>, Vec<F>, F, usize, usize)>
fn instance_map_with_evaluation<F: PrimeField, D: EvaluationDomain<F>>( cs: ConstraintSystemRef<F>, t: &F ) -> R1CSResult<(Vec<F>, Vec<F>, Vec<F>, F, usize, usize)>
Computes a QAP instance corresponding to the R1CS instance defined by
cs
.source§fn witness_map_from_matrices<F: PrimeField, D: EvaluationDomain<F>>(
matrices: &ConstraintMatrices<F>,
num_inputs: usize,
num_constraints: usize,
full_assignment: &[F]
) -> R1CSResult<Vec<F>>
fn witness_map_from_matrices<F: PrimeField, D: EvaluationDomain<F>>( matrices: &ConstraintMatrices<F>, num_inputs: usize, num_constraints: usize, full_assignment: &[F] ) -> R1CSResult<Vec<F>>
Computes a QAP witness corresponding to the R1CS witness defined by
cs
.source§fn h_query_scalars<F: PrimeField, D: EvaluationDomain<F>>(
max_power: usize,
t: F,
zt: F,
delta_inverse: F
) -> Result<Vec<F>, SynthesisError>
fn h_query_scalars<F: PrimeField, D: EvaluationDomain<F>>( max_power: usize, t: F, zt: F, delta_inverse: F ) -> Result<Vec<F>, SynthesisError>
Computes the exponents that the generator uses to calculate base
elements which the prover later uses to compute
h(x)t(x)/delta
.source§fn witness_map<F: PrimeField, D: EvaluationDomain<F>>(
prover: ConstraintSystemRef<F>
) -> Result<Vec<F>, SynthesisError>
fn witness_map<F: PrimeField, D: EvaluationDomain<F>>( prover: ConstraintSystemRef<F> ) -> Result<Vec<F>, SynthesisError>
Computes a QAP witness corresponding to the R1CS witness defined by
cs
.