subspace_networking

Function peer_id

source
pub fn peer_id(keypair: &Keypair) -> PeerId
Expand description

Converts public key from keypair to PeerId. It serves as the shared PeerId generating algorithm.