core/alias library

Package core provides convenient access to foundational, central libp2p primitives via type aliases.

This file provides type aliases for the core libp2p types, similar to the Go implementation. These aliases make it easier to use these types without having to import multiple packages. Multiaddr aliases the Multiaddr type.

Refer to the docs on that type for more info.

Classes

AddrInfo
Represents a peer with its addresses
MultiAddr
Represents a multiaddress

Typedefs

ProtocolID = String
ProtocolID is a string identifier for a protocol.