Skip to main content

VerifyingKey

Trait VerifyingKey 

Source
pub trait VerifyingKey: KeyDetails {
    // Required method
    fn verify(
        &self,
        hash: HashAlgorithm,
        data: &[u8],
        sig: &SignatureBytes,
    ) -> Result<()>;
}
Expand description

Keys that can verify signatures.

Required Methods§

Source

fn verify( &self, hash: HashAlgorithm, data: &[u8], sig: &SignatureBytes, ) -> Result<()>

Verify a signed message. Data will be hashed using hash, before verifying.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: VerifyingKey> VerifyingKey for &T

Source§

fn verify( &self, hash: HashAlgorithm, data: &[u8], sig: &SignatureBytes, ) -> Result<()>

Implementors§