Skip to main content

full_identity

Function full_identity 

Source
pub fn full_identity(id: &Identity) -> String
Expand description

Full-detail rendering of an mkit_core::Identity suitable for machine-readable output (e.g. JSONL from mkit log --format=json).

Format mirrors the parser shorthands accepted by mkit config user.identity / --author so a value emitted here round-trips: ed25519:<full-hex>, did:key:<multibase> (the payload verbatim, matching --author did:key:…), mid:<decimal-u64> for 8-byte opaque keys, and opaque:<full-hex> for other opaque lengths.