Trait mitrid_core::crypto::sign::Signable[][src]

pub trait Signable<P, Sk, Pk, Sig> where
    P: Datable,
    Sk: Datable + ConstantSize,
    Pk: Datable + ConstantSize,
    Sig: Datable + ConstantSize,
    Self: 'static + Sized
{ fn sign_cb(
        &self,
        params: &P,
        sk: &Sk,
        cb: &Fn(&Self, &P, &Sk) -> Result<Sig>
    ) -> Result<Sig> { ... }
fn verify_signature_cb(
        &self,
        params: &P,
        pk: &Pk,
        sig: &Sig,
        cb: &Fn(&Self, &P, &Pk, &Sig) -> Result<bool>
    ) -> Result<bool> { ... }
fn check_signature_cb(
        &self,
        params: &P,
        pk: &Pk,
        sig: &Sig,
        cb: &Fn(&Self, &P, &Pk, &Sig) -> Result<()>
    ) -> Result<()> { ... } }

Trait implemented by types that can produce and verify cryptographic signatures.

Provided Methods

Signs cryptographically the implementor using Datable params, a secret key and a callback. Returns a cryptographic signature.

Verifies a cryptographic signature against the implementor using a public key and a callback.

Checks a cryptographic signature against the implementor using a public key and a callback.

Implementors