snark_verifier::util::msm

Function multi_scalar_multiplication

Source
pub fn multi_scalar_multiplication<C: CurveAffine>(
    scalars: &[C::Scalar],
    bases: &[C],
) -> C::Curve
Expand description

Multi-scalar multiplication algorithm copied from https://github.com/zcash/halo2/blob/main/halo2_proofs/src/arithmetic.rs.