Skip to main content

๐Ÿ’ฝ InterPlanetary File System (IPFS)

What is IPFS? โ€‹

IPFS, or InterPlanetary File System, is a decentralized storage and communication protocol that allows users to store and share files and data on the decentralized web. IPFS is built on the principles of distributed networks, content-addressing, and peer-to-peer communication, which enables users to access and share data in a secure manner.

What makes IPFS special? โ€‹

With IPFS peer-to-peer network, content is made available through nodes anywhere in the world. As part of IPFS in-built security feature, contents are cryptographically hashed resulting in Content Identifier(CID). This CID is a hash of the content in it rather than where it is located. This leads us to the concept of โ€œContent Addressingโ€.

IPFS uses content addressing through hashing to identify content. This stands as a viable alternative to the location addressing prone to censorship and single point of failure.

What is pinning? โ€‹

Pinning is a mechanism that indicates to IPFS that a file should be retained or kept available. This can be done by running a local IPFS node and manually pinning the file, or by using a third-party pinning service.

Why do we need pinning service? โ€‹

To utilize the storage capacity of nodes, IPFS puts in place a process where nodes clear out infrequently-used items to efficiently manage its storage size. This process is called Garbage Collection.

As the node's datastore grows in size, a periodic garbage collection process will prune unpinned blocks, so you don't run out of disk space. To ensure that data persists on IPFS, and is not deleted during garbage collection, data can be pinned to one or more IPFS Nodes.

Pinning Service Providers โ€‹

These service providers run different nodes to pin data on these nodes for a fee

  1. Pinata
  2. Web3.Storage
  3. Filebase
  4. Infura
  5. NFT.Storage
info

If you have any questions, please join our Discord server, or send us an email at developers@klaytn.foundation