pub enum KeyPurpose {
Signing,
RnsEncryption,
Age,
WireGuard,
SshHost,
Yggdrasil,
I2pSigning,
I2pEncryption,
Tor,
RnsSigning,
GitSigning,
}Expand description
Key derivation purpose — maps to HKDF info strings for flat (non-parameterized) keys.
Variants§
Signing
THE identity signing key (Ed25519). Used for: mesh signing, git commits, personal attribution. Identity hash = SHA-256(pubkey) truncated to 16 bytes. This IS you.
RnsEncryption
RNS X25519 encryption key.
Age
age X25519 encryption key.
WireGuard
WireGuard Curve25519 key.
SshHost
SSH host Ed25519 key (identifies the machine, not the person).
Yggdrasil
Yggdrasil Ed25519 key (IPv6 overlay network identity).
I2pSigning
I2P destination Ed25519 signing key.
I2pEncryption
I2P destination X25519 encryption key.
Tor
Tor onion v3 service Ed25519 key.
RnsSigning
use KeyPurpose::Signing — RnsSigning and GitSigning are now unified
Legacy alias for Signing. Derives identical bytes.
GitSigning
use KeyPurpose::Signing — RnsSigning and GitSigning are now unified
Legacy alias for Signing. Derives identical bytes.
Implementations§
Source§impl KeyPurpose
impl KeyPurpose
Trait Implementations§
Source§impl Clone for KeyPurpose
impl Clone for KeyPurpose
Source§fn clone(&self) -> KeyPurpose
fn clone(&self) -> KeyPurpose
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more