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
type Scalar: ScalarNumber
type Scalar: ScalarNumber
This point type’s associated scalar type.
Beacuse point can’t multiply by point, We need use scalar multiply for point.