elliptic_curve::point

Trait AffineCoordinates

Source
pub trait AffineCoordinates {
    type FieldRepr: AsRef<[u8]>;

    // Required methods
    fn x(&self) -> Self::FieldRepr;
    fn y_is_odd(&self) -> Choice;
}
Expand description

Access to the affine coordinates of an elliptic curve point.

Required Associated Types§

Source

type FieldRepr: AsRef<[u8]>

Field element representation.

Required Methods§

Source

fn x(&self) -> Self::FieldRepr

Get the affine x-coordinate as a serialized field element.

Source

fn y_is_odd(&self) -> Choice

Is the affine y-coordinate odd?

Implementors§