Skip to main content

derive_purpose_key

Function derive_purpose_key 

Source
pub fn derive_purpose_key(root_key: &SigningKey, purpose: &str) -> SigningKey
Expand description

Derive a purpose-keyed Ed25519 signing key from a root key.

Standalone function for use in sync contexts (e.g., JWT signing) where the full async IdentityProvider isn’t needed.