pub trait LinearCombinationExt<PointsAndScalars>: Curvewhere
    PointsAndScalars: AsRef<[(Self, Self::Scalar)]> + ?Sized,{
    // Provided method
    fn lincomb_ext(points_and_scalars: &PointsAndScalars) -> Self { ... }
}
Available on crate feature arithmetic only.
Expand description

Linear combination (extended version).

This trait enables providing an optimized implementation of linear combinations (e.g. Shamir’s Trick).

Provided Methods§

source

fn lincomb_ext(points_and_scalars: &PointsAndScalars) -> Self

Calculates x1 * k1 + ... + xn * kn.

Object Safety§

This trait is not object safe.

Implementors§