pub fn decapsulate_multiaddress(multiaddr: Multiaddr) -> Multiaddr
Decapsulates the multiaddress (= strips the /p2p/<peer_id> suffix). If it is already decapsulated, the function is an identity.