logo
pub trait LinearCombination: Group {
    fn lincomb(x: &Self, k: &Self::Scalar, y: &Self, l: &Self::Scalar) -> Self { ... }
}
This is supported on crate feature arithmetic only.
Expand description

Linear combination.

This trait enables crates to provide an optimized implementation of linear combinations (e.g. Shamir’s Trick), or otherwise provides a default non-optimized implementation.

Provided methods

Calculates x * k + y * l.

Implementors