Trait elliptic_curve::ops::LinearCombinationExt
source · 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§
sourcefn lincomb_ext(points_and_scalars: &PointsAndScalars) -> Self
fn lincomb_ext(points_and_scalars: &PointsAndScalars) -> Self
Calculates x1 * k1 + ... + xn * kn
.
Object Safety§
This trait is not object safe.