pub type SecretKey<V> = Key<V, Secret>;Expand description
Private key used for token signing
Aliased Type§
pub struct SecretKey<V>(/* private fields */);Implementations§
Source§impl<V: SealingVersion<Public>> SecretKey<V>
impl<V: SealingVersion<Public>> SecretKey<V>
Sourcepub fn random() -> Result<Self, PasetoError>
pub fn random() -> Result<Self, PasetoError>
Generate a random secret key
Sourcepub fn public_key(&self) -> PublicKey<V>
pub fn public_key(&self) -> PublicKey<V>
Derive the associated public key