Trait attenuable_jwt::PrivateKey
source · [−]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.