pub trait DisLogPoint:
Clone
+ Bytes
+ Debug {
type Scalar: ScalarNumber;
const SIZE: usize;
// Required methods
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;
// Provided method
fn sub(&self, rhs: &Self) -> Self
where Self: Sized { ... }
}Expand description
Point operator for this curve on finite finite $G_p$
Required Associated Constants§
Required Associated Types§
Sourcetype 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.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".