cid_to_short_id

Function cid_to_short_id 

Source
pub fn cid_to_short_id(cid: &str) -> String
Expand description

Generate a short identifier (8 chars) from a CID for display purposes. Takes first 8 characters after “Qm” prefix if present, otherwise first 8 chars.