Skip to main content

format_peer_id

Function format_peer_id 

Source
pub fn format_peer_id(pubkey_hex: &str) -> String
Expand description

Format a peer ID from a hex-encoded public key.

The actual key derivation is platform-specific; this function only defines the canonical format: "peer-{first 16 hex chars}".