Trait coins_bip32::ecdsa::signature::Verifier

source ·
pub trait Verifier<S> {
    // Required method
    fn verify(&self, msg: &[u8], signature: &S) -> Result<(), Error>;
}
Expand description

Verify the provided message bytestring using Self (e.g. a public key)

Required Methods§

source

fn verify(&self, msg: &[u8], signature: &S) -> Result<(), Error>

Use Self to verify that the provided signature for a given message bytestring is authentic.

Returns Error if it is inauthentic, or otherwise returns ().

Implementations on Foreign Types§

source§

impl Verifier<Signature> for VerifyingKey

source§

fn verify(&self, msg: &[u8], signature: &Signature) -> Result<(), Error>

source§

impl<C> Verifier<Signature<C>> for VerifyingKey<C>

source§

fn verify(&self, msg: &[u8], signature: &Signature<C>) -> Result<(), Error>

source§

impl<C> Verifier<Signature<C>> for VerifyingKey<C>

source§

fn verify(&self, msg: &[u8], signature: &Signature<C>) -> Result<(), Error>

Implementors§