pub trait PointType: Sized + Clone + Copy + PartialEq + Eq + Hash + Ord + PartialOrd {
    type NegationType: Default;

    // Required method
    fn is_normalized() -> bool;
}
Expand description

Every T of a Point<T,S,Z> implements the PointType trait.

There are several different point types.

  • Normal: A point represented internally with Affine coordinates, with x and y coordinates (if it’s not zero). These can be directly serialized or hashed.
  • NonNormal: A non-normalized represented internally as in three coordinates. Usually the result of a point operation. Before being serialized or hashed, you have to normalize it.
  • BasePoint: A normal point that has (or may have in the future) pre-computed multiplication tables like G.
  • EvenY: A normal point whose y-coordinate is known to be even at compile time.

Required Associated Types§

source

type NegationType: Default

The point type returned from the negation of a point of this type.

Required Methods§

source

fn is_normalized() -> bool

Whether the point type is normalized or not (i.e. not NonNormal)

Object Safety§

This trait is not object safe.

Implementors§