A set of protocols for peer identity, discover, routing, transport and more.

Peer-to-peer network

Peers or nodes communicate with oen another directly, it’s different from the client-server architecture.

libp2p Solved

  • Transport abstract data transmission and receipt to adapte many protocols, include the future protocols.

  • Identity use public key cryptography as the basis of peer identity, with this:

    • It gives each peer a globally unique “name”, in the form of a PeerId.
    • PeerId allows anyone to retreve the public key for the identified peer, which enables secure communication between peers.
  • Security libp2p supports “upgrading” a connection provided by a transport into a securely encrypted channel. Currently support;

    • TLS 1.3
    • Noise
  • Peer Routing: Distributed Hash Table(DHT)

    Two key pieces:

    • PeerId
    • The way to locate them on the network to open a connection.
  • Content Discovery content routing interface by using DHT.

  • Messaging / PubSub