Skip to content

P2P network

Pankaj edited this page Nov 27, 2019 · 3 revisions

Libp2p is used to build the p2p layer for the simpleblockchain. These are the primary functions of this layer

  • Setting up p2p network. This could be network among list of peers defined statically or peers can join/leave dynamically. There should be mechanism to get the list of peers connected to a node and to get the list of nodes in the network.
  • This layer should also support messaging among the peers using publisher subscriber mechanism
  • It should also support state/data sync-up among the nodes

P2P network support

Statically defined peer list for the network. Peer discovery example in JS is given here, peer discovery

For dynamic peer discovery

Clone this wiki locally