pub trait PublicKey: ErasedSerialize {
    fn key_id(&self) -> &str;
    fn algorithm(&self) -> &str;
    fn key_use(&self) -> KeyUse;
    fn verify(&self, message: &[u8], signature: &[u8]) -> bool;
}
Expand description

A public key. The ErasedSerialize implementation must serialize to a JWK.

Required Methods

Key ID.

Algorithm.

Intended use for the key.

Verify the signature of the message.

Trait Implementations

Serialize this value into the given Serde serializer. Read more

Serialize this value into the given Serde serializer. Read more

Serialize this value into the given Serde serializer. Read more

Serialize this value into the given Serde serializer. Read more

Implementors