SigningAlgorithm

Trait SigningAlgorithm 

Source
pub trait SigningAlgorithm {
    type OutputSize: ArrayLength<u8> + Unsigned;
    type Signer: Signer<OutputSize = Self::OutputSize>;

    // Provided methods
    fn get_signer(key: &[u8]) -> Self::Signer { ... }
    fn get_signature(key: &[u8], value: &[u8]) -> Signature<Self::OutputSize> { ... }
}
Expand description

A trait which implements signature generation functionality.

Required Associated Types§

Provided Methods§

Source

fn get_signer(key: &[u8]) -> Self::Signer

Returns a signer that can be used to build a signature for a given key + values.

Source

fn get_signature(key: &[u8], value: &[u8]) -> Signature<Self::OutputSize>

Returns the signature for a given key + value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§