How do nodes communicate in the IPFS network? Aren't they still using HTTP?
If not, how is JS-IPFS able to interact directly with the IPFS network without the need for a HTTP gateway server?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.
Sign up to join this communityIPFS uses peer-to-peer communication using the libp2p
library which uses multiaddress(multiaddr
). multiaddr
is a way of communication using multiple protocols. The JS version of the libp2p library allows you to configure Transports which are used to communicate between peers. Here's a list of supported transports as shown on the configuration guide.
The js-libp2p-tcp
and js-libp2p-utp
cannot be used in a browser.
IPFS & libp2p: https://docs.ipfs.io/concepts/libp2p/