pub struct EllipticCurvePoint<T> { /* private fields */ }

Implementations§

Create point on a weierstrass curve. If given point is not on the curve, the point at infinity will be created instead.

Arguments
  • x - the x-coordinate
  • y - the y-coordinate
  • isPointAtInfinity - the size of the scalar field used for scalar multiplication
  • ‘curve’ - The ‘WeiestrassCurve’ object defining the curve

Checks if point is identity/point at infinity

Doubles point

negates point as (x,-y)

Checks if point is on the curve point is on the curve IFF the point satisfies the Weiestrass equation: Yˆ2 + a_1XY + a_3Y = xˆ3 + a_2Xˆ2 + a_4X + a_6 or it is the point at infinity

Trait Implementations§

Adds two curve points

The resulting type after applying the + operator.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Creates default instance of ‘EllipticCurvePoint’ as point at infinity The assosiated curve is set to be the default, which is all 0.

Scalar multiplication as G * m G is curve point and m is scalar

The resulting type after applying the * operator.

Checks if two curve points are identical, regardless of underlying curve.

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.