pub fn derive_libp2p_peer_id<K: SignatureKey>(
    private_key: &K::PrivateKey,
) -> Result<PeerId>
Expand description

Derive a Libp2p Peer ID from a given private key

§Errors

If we are unable to derive a Libp2p keypair