pub trait PublicKey: Send + Sync + Eq + Clone + AsRef<[u8]> + Display + Hash + Codec + 'static {
    type Signature: Send + Sync + Clone + Codec;

    // Required method
    fn verify(&self, message: &[u8], signature: &Self::Signature) -> bool;
}
Expand description

A public key for signature verification.

Required Associated Types§

source

type Signature: Send + Sync + Clone + Codec

Required Methods§

source

fn verify(&self, message: &[u8], signature: &Self::Signature) -> bool

Verify whether the message has been signed with the associated private key.

Object Safety§

This trait is not object safe.

Implementors§