Trait rac::Signature [−][src]
pub trait Signature where
Self: LineValid, { type Scalar: Scalar; type Curve: Curve<Scalar = Self::Scalar>; fn sign<M>(
secret_key: &Self::Scalar,
message: &M,
seed: &Self::Scalar
) -> Result<Self, ()>
where
M: AsRef<[u8]>; fn verify<M>(&self, public_key: &Self::Curve, message: &M) -> Result<(), ()>
where
M: AsRef<[u8]>; }
Associated Types
Loading content...Required methods
fn sign<M>(
secret_key: &Self::Scalar,
message: &M,
seed: &Self::Scalar
) -> Result<Self, ()> where
M: AsRef<[u8]>,
[src]
secret_key: &Self::Scalar,
message: &M,
seed: &Self::Scalar
) -> Result<Self, ()> where
M: AsRef<[u8]>,
fn verify<M>(&self, public_key: &Self::Curve, message: &M) -> Result<(), ()> where
M: AsRef<[u8]>,
[src]
M: AsRef<[u8]>,
Implementors
Loading content...