ark_groth16::r1cs_to_qap

Function evaluate_constraint

Source
pub fn evaluate_constraint<'a, LHS, RHS, R>(
    terms: &'a [(LHS, usize)],
    assignment: &'a [RHS],
) -> R
where LHS: One + Send + Sync + PartialEq, RHS: Send + Sync + Mul<&'a LHS, Output = RHS> + Copy, R: Zero + Send + Sync + AddAssign<RHS> + Sum,
Expand description

Computes the inner product of terms with assignment.