pub trait AffineCoordinates: Sized {
type FieldRepr: AsRef<[u8]>;
// Required methods
fn from_coordinates(
x: &Self::FieldRepr,
y: &Self::FieldRepr,
) -> CtOption<Self>;
fn x(&self) -> Self::FieldRepr;
fn y(&self) -> Self::FieldRepr;
fn x_is_odd(&self) -> Choice;
fn y_is_odd(&self) -> Choice;
}Expand description
Access to the affine coordinates of an elliptic curve point.
Required Associated Types§
Required Methods§
Sourcefn from_coordinates(x: &Self::FieldRepr, y: &Self::FieldRepr) -> CtOption<Self>
fn from_coordinates(x: &Self::FieldRepr, y: &Self::FieldRepr) -> CtOption<Self>
Creates an affine point from its coordinates.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".