Trait cry::primitive::point::DisLogPoint[][src]

pub trait DisLogPoint: Clone + Bytes + Debug {
    type Scalar: ScalarNumber;

    const SIZE: usize;

    fn zero() -> Self;
fn one() -> Self;
fn basepoint() -> Self;
fn add(&self, rhs: &Self) -> Self;
fn mul(&self, rhs: &Self::Scalar) -> Self;
fn neg(&self) -> Self;
fn eq(&self, o: &Self) -> bool; fn sub(&self, rhs: &Self) -> Self
    where
        Self: Sized
, { ... } }
Expand description

Point operator for this curve on finite finite $G_p$

Associated Types

This point type’s associated scalar type.

Beacuse point can’t multiply by point, We need use scalar multiply for point.

Associated Constants

Point size in bytes.

Required methods

Get a point means zero.

Get a point means one.

Get a base point for this curve.

Add two point.

Scalar multiply for point.

Negative a point.

Two point is equal.

Provided methods

Subtraction two point.

Implementors