Skip to main content

VerificationKey

Trait VerificationKey 

Source
pub trait VerificationKey {
    type Plaintext;
    type Signature;

    // Required method
    fn verify(
        &self,
        signature: &Self::Signature,
        plaintext: &Self::Plaintext,
    ) -> bool;
}
Expand description

The Verification key.

Required Associated Types§

Source

type Plaintext

The type of the plaintext to be signed.

Source

type Signature

The type of a signature.

Required Methods§

Source

fn verify( &self, signature: &Self::Signature, plaintext: &Self::Plaintext, ) -> bool

Verify the Signature on the plaintext message using the (public) Verification key.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§