Skip to main content

SignerKey

Trait SignerKey 

Source
pub trait SignerKey:
    'static
    + Sync
    + Send {
    const ALGORITHM: &'static str;

    // Required methods
    fn key_id(&self) -> String;
    fn sign(&self, target: &[u8]) -> Vec<u8> ;
}

Required Associated Constants§

Source

const ALGORITHM: &'static str

Required Methods§

Source

fn key_id(&self) -> String

Source

fn sign(&self, target: &[u8]) -> Vec<u8>

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§