Trait ring_compat::signature::Verifier[][src]

pub trait Verifier<S> where
    S: Signature
{ pub fn verify(&self, msg: &[u8], signature: &S) -> Result<(), Error>; }
This is supported on crate feature signature only.

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

Required methods

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

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

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

Loading content...

Implementors

impl Verifier<Signature> for ring_compat::signature::ed25519::VerifyingKey[src]

impl<C: Curve> Verifier<Signature<C>> for ring_compat::signature::ecdsa::VerifyingKey<C> where
    C: Curve + CurveAlg + Order,
    SignatureSize<C>: ArrayLength<u8>,
    UntaggedPointSize<C>: Add<U1> + ArrayLength<u8>,
    UncompressedPointSize<C>: ArrayLength<u8>, 
[src]

Loading content...