SecretKey

Type Alias SecretKey 

Source
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>

Source

pub fn random() -> Result<Self, PasetoError>

Generate a random secret key

Source

pub fn public_key(&self) -> PublicKey<V>

Derive the associated public key