Trait SignatureManger

Source
pub trait SignatureManger {
    // Required method
    fn verify(key: &[u8], message: &[u8], signature: &[u8]) -> bool;
}
Expand description

Public trait that handles signature verification across different chains

Required Methods§

Source

fn verify(key: &[u8], message: &[u8], signature: &[u8]) -> bool

Verifies the signature against the message and public key Returns if the signature is valid

§Arguments
  • key - The public key of the signer
  • message - The message to verify
  • signature - The signature to verify

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§