pub trait PrivateKey: ErasedSerialize {
    fn key_id(&self) -> &str;
    fn algorithm(&self) -> &str;
    fn sign(&self, message: &[u8]) -> Result<Vec<u8>>;
}
Expand description

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

Required Methods

Key ID.

Algorithm.

Sign the message.

Implementors