Skip to main content

peer_id_to_offchain_key

Function peer_id_to_offchain_key 

Source
pub fn peer_id_to_offchain_key(peer_id: &PeerId) -> Result<OffchainPublicKey>
Expand description

Converts a PeerId to an OffchainPublicKey.

This is a standalone utility function, not part of the API traits.