github.com/celestiaorg/celestia-node@v0.15.0-beta.1/share/p2p/doc.go (about) 1 // Package p2p provides p2p functionality that powers the share exchange protocols used by celestia-node. 2 // The available protocols are: 3 // 4 // - shrexsub : a floodsub-based pubsub protocol that is used to broadcast/subscribe to the event 5 // of new EDS in the network to peers. 6 // 7 // - shrexnd: a request/response protocol that is used to request shares by namespace or namespace data from peers. 8 // 9 // - shrexeds: a request/response protocol that is used to request extended data square shares from peers. 10 // This protocol exchanges the original data square in between the client and server, and it's up to the 11 // receiver to compute the extended data square. 12 // 13 // This package also defines a peer manager that is used to manage network peers that can be used to exchange 14 // shares. The peer manager is primarily responsible for providing peers to request shares from, 15 // and is primarily used by `getters.ShrexGetter` in share/getters/shrex.go. 16 // 17 // Find out more about each protocol in their respective sub-packages. 18 package p2p