Trait min_jwt::sign::Signer[][src]

pub trait Signer: Private {
    type Signature: Signature;
    fn sign(&self, bytes: &[u8]) -> Result<Self::Signature>;
}
Expand description

A type which can sign a byte buffer.

In some cases, the trait is directly implemented on a signing key type which can directly generate a signature.

In other cases, a new type composed of multiple fields may be needed because the signing key’s sign method may require more parameters (e.g. a random number generator).

Associated Types

Required methods

Returns a signature from a byte buffer.

Implementations on Foreign Types

Implementors