pub fn extract_peer_id_from_multiaddr(addr: &str) -> Option<PeerId>
Extract the peer ID from a multiaddr string, if present.