EcPointTrait
Fully qualified path: core::ec::EcPointTrait
pub trait EcPointTrait
Trait functions
new
Creates a new EC point from its (x, y) coordinates.
Fully qualified path: core::ec::EcPointTrait::new
fn new(x: felt252, y: felt252) -> Option<EcPoint>
new_nz
Creates a new NonZero EC point from its (x, y) coordinates.
Fully qualified path: core::ec::EcPointTrait::new_nz
fn new_nz(x: felt252, y: felt252) -> Option<NonZeroEcPoint>
new_from_x
Creates a new EC point from its x coordinate.
Fully qualified path: core::ec::EcPointTrait::new_from_x
fn new_from_x(x: felt252) -> Option<EcPoint>
new_nz_from_x
Creates a new NonZero EC point from its x coordinate.
Fully qualified path: core::ec::EcPointTrait::new_nz_from_x
fn new_nz_from_x(x: felt252) -> Option<NonZeroEcPoint>
coordinates
Returns the coordinates of the EC point.
Fully qualified path: core::ec::EcPointTrait::coordinates
fn coordinates(self: NonZeroEcPoint) -> (felt252, felt252)
x
Returns the x coordinate of the EC point.
Fully qualified path: core::ec::EcPointTrait::x
fn x(self: NonZeroEcPoint) -> felt252
y
Returns the y coordinate of the EC point.
Fully qualified path: core::ec::EcPointTrait::y
fn y(self: NonZeroEcPoint) -> felt252
mul
Computes the product of an EC point p
by the given scalar scalar
.
Fully qualified path: core::ec::EcPointTrait::mul
fn mul(self: EcPoint, scalar: felt252) -> EcPoint