Libp2p.PeerId (libp2p_elixir v0.9.0)
PeerId derivation and formatting.
PeerId bytes are a multihash of the libp2p-crypto protobuf-encoded public key.
Per peer-ids/peer-ids.md:
- If the protobuf-encoded public key is <= 42 bytes, use the identity multihash.
- Otherwise, use sha2-256 multihash.
Summary
Types
@type t() :: binary()