pyecsca.ec.point module

class pyecsca.ec.point.Point(model, **coords)[source]

Bases: object

A point with coordinates in a coordinate model.

equals(other)[source]

Test whether this point is equal to other irrespective of the coordinate model (in the affine sense).

Return type:bool
static from_affine(coordinate_model, affine_point)[source]

Convert an affine point into a given coordinate model, if possible.

Return type:Point
to_affine()[source]

Convert this point into the affine coordinate model, if possible.

Return type:Point
class pyecsca.ec.point.InfinityPoint(model)[source]

Bases: pyecsca.ec.point.Point

A point at infinity.

equals(other)[source]

Test whether this point is equal to other irrespective of the coordinate model (in the affine sense).

Return type:bool
static from_affine(coordinate_model, affine_point)[source]

Convert an affine point into a given coordinate model, if possible.

Return type:InfinityPoint
to_affine()[source]

Convert this point into the affine coordinate model, if possible.

Return type:InfinityPoint