Skip to main content

PointArithmetic

Trait PointArithmetic 

Source
pub trait PointArithmetic<C: PrimeCurveParams> {
    // Required methods
    fn add_assign(lhs: &mut ProjectivePoint<C>, rhs: &ProjectivePoint<C>);
    fn add_assign_mixed(lhs: &mut ProjectivePoint<C>, rhs: &AffinePoint<C>);
    fn double_in_place(point: &mut ProjectivePoint<C>);
}
Expand description

Elliptic point arithmetic implementation

Provides implementation of point arithmetic (point addition, point doubling) which might be optimized for the curve.

Required Methods§

Source

fn add_assign(lhs: &mut ProjectivePoint<C>, rhs: &ProjectivePoint<C>)

Assigns lhs + rhs to lhs.

Source

fn add_assign_mixed(lhs: &mut ProjectivePoint<C>, rhs: &AffinePoint<C>)

Assigns lhs + rhs to lhs.

Source

fn double_in_place(point: &mut ProjectivePoint<C>)

Computes point + point and assigns it to point.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§