Skip to main content

Signer

Trait Signer 

Source
pub trait Signer {
    // Required methods
    fn sign(&self, message: &[u8]) -> Result<Signature, Error>;
    fn algorithm(&self) -> Algorithm;
}

Required Methods§

Source

fn sign(&self, message: &[u8]) -> Result<Signature, Error>

Source

fn algorithm(&self) -> Algorithm

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Signer for MlDsa44SecretKey

Source§

fn sign(&self, message: &[u8]) -> Result<Signature, Error>

Source§

fn algorithm(&self) -> Algorithm

Source§

impl Signer for MlDsa65SecretKey

Source§

fn sign(&self, message: &[u8]) -> Result<Signature, Error>

Source§

fn algorithm(&self) -> Algorithm

Source§

impl Signer for MlDsa87SecretKey

Source§

fn sign(&self, message: &[u8]) -> Result<Signature, Error>

Source§

fn algorithm(&self) -> Algorithm

Source§

impl Signer for SecretKey

Source§

fn sign(&self, message: &[u8]) -> Result<Signature, Error>

Source§

fn algorithm(&self) -> Algorithm

Source§

impl Signer for SecretKey

Source§

fn sign(&self, message: &[u8]) -> Result<Signature, Error>

Source§

fn algorithm(&self) -> Algorithm

Source§

impl Signer for SecretKey

Source§

fn sign(&self, message: &[u8]) -> Result<Signature, Error>

Source§

fn algorithm(&self) -> Algorithm

Implementors§

Source§

impl Signer for Key<'_>

Source§

impl Signer for jwt::SecretKey<'_>