Trait Algorithm

Source
pub trait Algorithm {
    type PublicKey;
    type Signature;

    // Required method
    fn verify(
        msg: &[u8],
        public_key: &Self::PublicKey,
        signature: &Self::Signature,
    ) -> bool;
}
Expand description

Required Associated Types§

Required Methods§

Source

fn verify( msg: &[u8], public_key: &Self::PublicKey, signature: &Self::Signature, ) -> bool

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§