[][src]Trait rac::Signature

pub trait Signature where
    Self: LineValid
{ type Scalar: Scalar; type Curve: Curve<Scalar = Self::Scalar>; fn sign(secret_key: &Self::Scalar, message: &Self::Scalar) -> Self;
fn verify(
        &self,
        public_key: &Self::Curve,
        message: &Self::Scalar
    ) -> Result<(), ()>; }

Associated Types

type Scalar: Scalar

type Curve: Curve<Scalar = Self::Scalar>

Loading content...

Required methods

fn sign(secret_key: &Self::Scalar, message: &Self::Scalar) -> Self

fn verify(
    &self,
    public_key: &Self::Curve,
    message: &Self::Scalar
) -> Result<(), ()>

Loading content...

Implementors

Loading content...