pub fn ed25519_to_did_key(key: &[u8; 32]) -> StringExpand description
Encode a raw 32-byte Ed25519 public key as a did:key (Ed25519) identifier
(did:key:z6Mk…).
The produced string is "did:key:" + ed25519_to_multibase(key) and
round-trips with did_key_to_ed25519; the Multikey body is byte-identical
to the publicKeyMultibase our DID documents publish (one multicodec source
of truth over the same 0xed01 ‖ key payload).