Verify

Trait Verify 

Source
pub trait Verify {
    type Error: Send;

    // Required method
    fn verify(
        &self,
        signing_string: &str,
        signature: &str,
    ) -> Result<bool, Self::Error>;
}
Expand description

Describes verifying signatures

Required Associated Types§

Source

type Error: Send

Errors that verifying a signature can produce

Required Methods§

Source

fn verify( &self, signing_string: &str, signature: &str, ) -> Result<bool, Self::Error>

Verify the signature matches the provided signing string

Implementations on Foreign Types§

Source§

impl<'a, T> Verify for &'a T
where T: Verify,

Source§

type Error = <T as Verify>::Error

Source§

fn verify( &self, signing_string: &str, signature: &str, ) -> Result<bool, Self::Error>

Source§

impl<'a, T> Verify for &'a mut T
where T: Verify,

Source§

type Error = <T as Verify>::Error

Source§

fn verify( &self, signing_string: &str, signature: &str, ) -> Result<bool, Self::Error>

Source§

impl<T> Verify for Box<T>
where T: Verify,

Source§

type Error = <T as Verify>::Error

Source§

fn verify( &self, signing_string: &str, signature: &str, ) -> Result<bool, Self::Error>

Source§

impl<T> Verify for Rc<T>
where T: Verify,

Source§

type Error = <T as Verify>::Error

Source§

fn verify( &self, signing_string: &str, signature: &str, ) -> Result<bool, Self::Error>

Source§

impl<T> Verify for Arc<T>
where T: Verify,

Source§

type Error = <T as Verify>::Error

Source§

fn verify( &self, signing_string: &str, signature: &str, ) -> Result<bool, Self::Error>

Implementors§