Trait elliptic_curve::ops::LinearCombinationExt

source ·
pub trait LinearCombinationExt<PointsAndScalars>: Curve
where PointsAndScalars: AsRef<[(Self, Self::Scalar)]> + ?Sized,
{ // Provided method fn lincomb_ext(points_and_scalars: &PointsAndScalars) -> Self { ... } }
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§