pub trait PublicKey: ErasedSerialize {
// Required methods
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.