[][src]Trait rac::Curve

pub trait Curve where
    Self: LineValid
{ type Scalar: Scalar; type CompressedLength: ArrayLength<u8>; const NAME: &'static str; fn base() -> Self;
fn mul_ec(&self, rhs: &Self) -> Self;
fn exp_ec(&self, rhs: &Self::Scalar) -> Self;
fn decompress(
        packed: &GenericArray<u8, Self::CompressedLength>
    ) -> Result<Self, ()>;
fn compress(&self) -> GenericArray<u8, Self::CompressedLength>; }

Associated Types

Loading content...

Associated Constants

const NAME: &'static str

Loading content...

Required methods

fn base() -> Self

fn mul_ec(&self, rhs: &Self) -> Self

fn exp_ec(&self, rhs: &Self::Scalar) -> Self

fn decompress(
    packed: &GenericArray<u8, Self::CompressedLength>
) -> Result<Self, ()>

fn compress(&self) -> GenericArray<u8, Self::CompressedLength>

Loading content...

Implementors

Loading content...