Interplanetary File system IPFS powers the Blockchain (Part 21) (2024)

Welcome to the 21st part of the 100-part series on Blockchain.

In the traditional web application, the data is stored on centralized servers owned and operated by an organization, giving it full authority over the app and the data. Also, centralized data storage may have availability issues. Let’s say you want to download an image abc.png from the domain xyz.com. For this, you tell the computer exactly where to find the image. The location of the image is the URL address, i.e., xyz.com/abc.png. This is called “location-based addressing.” But suppose if the server is down, or the file has now been removed from the servers for whatever reason, you won’t be able to access the image anymore. However, there is a probability that someone else has downloaded the image before and has a copy of it. But yet, there is no way of connecting to them and grabbing a copy of the picture from that person.

To solve this issue Interplanetary File system, abbreviated as IPFS storage solution protocol, is used, which uses “content-based addressing” instead of “location-based addressing.”

Interplanetary File system IPFS powers the Blockchain (Part 21) (1)

IPFS and Content-based addressing

IPFS is a peer-to-peer decentralized protocol for storing Blockchain-based data. In this, instead of saying where to find a resource, you just say what it contains. Also, rather than referring to objects as pics, articles, or videos, IPFS refers to everything by the hash on the file. Every file has a unique hash, which can be compared to a fingerprint. Therefore, when you want to download a certain file, you will ask the network, “who has the file with this hash?” and someone on the IPFS network will provide it to you. The hash function allows you to check the integrity of the obtained file by comparing the requested hash with the hash of the received file. If the hashes match, it means you received the file as it is; it has not been modified.

The hash function also helps de-duplication, such that no file with the same content can be submitted twice since the same content generates the same hash. This optimizes the storage requirements and also improves the performance of the network.

How can Blockchain data be stored onIPFS?

Blockchain is an expensive medium for data storage. It costs around $100 per GB of storage. For efficient storage of extensive data and content, Inter-Planetary File System, abbreviated as IPFS, can be used which is a distributed, decentralized file system and a platform to store data and files with high integrity and resiliency.

Let’s now understand how data is stored in the IPFS system:

(i) Files are stored as IPFS objects. 256 kB of data can be stored inside one IPFS object. Therefore the file up to size 256 kB can be stored in a single IPFS object. But what about the files that are larger than 256 kB, like an image or a video file? Such files are split up into multiple IPFS objects that are all 256 kB in size and are stored across a network of nodes. Nodes of the IPFS are incentivized for providing storage space on their computer or server for hosting/storing files. Anyone can install and run an IPFS node on their computer.

Each IPFS object is identified with its own hash. For example, suppose you want to store a file of size 1MB, whose hash is, say, 85bcd. The file will be split into 4 chunks of 256 kB each, and each chunk will have its unique hash (content identifiers or CID), say 09afg, 6efab, 45af, and 23hbc. When the chunks are assembled together, based on their hash value, it recreates the original file.

(ii) IPFS system also creates an empty IPFS object that contains an array of links to IPFS objects of the file. These links of IPFS hashes are stored into the Blockchain smart contracts to provide traceability and authenticity. And the content of the files is stored on IPFS.

If there is any change in the content of the digital document, the hash changes, which indicates that the original content was modified and altered.

Recommended by LinkedIn

Pioneering the Future: Advanced Zero-Knowledge-Proofs… Dhanraj Dadhich 1 year ago
Blockchain : Facilitating Encrypted Database and Data… David Funyi T. 2 months ago
Are the Fastest Blockchains Secure? GIORGIO BONUCCELLI 5 months ago
Interplanetary File system IPFS powers the Blockchain (Part 21) (5)

How to share files on the Blockchain withIPFS?

Suppose you have uploaded a PDF file on the IPFS network. The hash of the file is stored on the Blockchain. Anyone knowing the hash of the file can retrieve the file from IPFS and read its data.

Asymmetric Encryption: Since as long as anyone has the hash of the PDF file, they can retrieve it from IPFS. So sensitive files can not be stored as such on the IPFS network. This problem can be solved by using cryptographic public and private keys. You need to encrypt the file with the intended recipient’s public key so that only they can decrypt it. A malicious party who retrieves the file from IPFS can’t do anything unless it is decrypted — coming to our example. Suppose you uploaded a PDF file on the IPFS network that only Mat can access. After knowing the hash of the file, Mat can retrieve the encrypted file from the IPFS network. He can now decrypt the file using his private key and know its contents.

Interplanetary File system IPFS powers the Blockchain (Part 21) (6)

Few use cases of IPFS in storing Blockchain data

(i) Non-Fungible Tokens or NFTs: A NFT is a type of digital certificate that guarantees ownership of a unique digital asset such as a song, an image, art, videos, game, etc. NFTs can’t be directly stored on the Blockchain as storing that much data on the Blockchain is expensive and consumes a lot of electricity. Here is where IPFS comes in. The specifics of the NFT, including the sale agreement between the NFT owner and buyer, information regarding the creator of the work, royalties, etc., can be stored directly on the smart contracts. But NFT data or digital assets can be stored in IPFS. And the link to the data on IPFS is also included in smart contracts, which can be accessed by the owner only.

(ii) Storing Electronic Health Records (EHR): IPFS also allows for safer storage of patients’ health data, and Blockchain limits the data access to only authorized users, e.g., healthcare providers, insurance companies, etc.

(iii) IPFS can be an excellent tool for dApps as it can be used to store any dApp data. For example, in the case of educational dApp, course content, assignments, blogs, articles, etc., can be stored on decentralized IPFS. And in the case of streaming dApps, video and music content can be stored on IPFS.

If you liked this article and want to know more about Blockchain, NFTs, Metaverse, and their applications, click the below link.

Happy learning!

Interplanetary File system IPFS powers the Blockchain (Part 21) (2024)

FAQs

What is the InterPlanetary File System IPFS protocol? ›

The InterPlanetary File System (IPFS) is a protocol, hypermedia and file sharing peer-to-peer network for storing and sharing data in a distributed file system.

Is IPFS on the blockchain? ›

While IPFS is not a blockchain, it plays a significant role in the blockchain ecosystem by providing a cost-effective, tamper-proof solution for data storage and retrieval.

What is the difference between InterPlanetary File System and blockchain? ›

While IPFS and blockchain are both decentralized technologies, they serve different purposes. IPFS focuses on creating a global, decentralized network for storing and sharing files, while blockchain serves primarily as a decentralized ledger.

What is IPFS used for? ›

IPFS (Interplanetary File System) is essentially a file system that allows you to store files and track versions over time, much like Git, keeping track of them on a distributed network, somewhat like BitTorrent.

Why do I need IPFS? ›

IPFS protects data sovereignty by enabling users to store and access data directly on a decentralized network of nodes, rather than centralized, third-party servers.

Is IPFS safe? ›

IPFS uses transport-encryption but not content encryption. This means that your data is secure when being sent from one IPFS node to another. However, anyone can download and view that data if they have the CID.

What are the disadvantages of IPFS blockchain? ›

IPFS has limitations in terms of storage. The blockchain becomes swollen with data, requiring a significant amount of storage space without serving immediate use. Additionally, the cost of running blockchain nodes increases as more data needs to be processed, exchanged, and stored [2] [3].

Is IPFS trackable? ›

Every IPFS node on the network has a unique public identifier, known as a PeerID. Since PeerIDs are long-lived identities, it's possible for someone to look up your PeerID in the distributed hash table (DHT) that stores public IPFS metadata and track your IP address over time.

How does IPFS make money? ›

IPFS and Filecoin

Under Filecoin's incentive structure, clients pay to store data at specific levels of redundancy and availability, and storage providers earn payments and rewards by continuously storing data and cryptographically proving it.

Is IPFS free? ›

Storing data on IPFS itself is free, but there are costs associated with hosting and maintaining nodes or using third-party services. Factors that impact cost include the amount of data stored, bandwidth usage, and the number of data requests.

Why is it called InterPlanetary File System? ›

The InterPlanetary File System gets its name because, in theory, it could be extended to share data even between computers on different planets of the solar system.

How to open an IPFS file? ›

These simple steps will walk you through the process:
  1. Get the CID of the file or directory that you want to download. ...
  2. In the IPFS Desktop app, go to the Files tab and click Import.
  3. In the dropdown menu that appears, select From IPFS, and a new window will appear.
  4. Paste the CID into the Path or CID field. ...
  5. Click Import.

Does IPFS require blockchain? ›

IPFS can be utilized in a blockchain network to store data off-chain, reducing the load on the main chain and improving overall scalability. For instance, smart contracts can store large amounts of data on IPFS, while only the data's hash is stored on the blockchain.

What can be stored on IPFS? ›

The InterPlanetary File System (IPFS) is a decentralized and distributed file storage system that seeks to connect all computing devices with the same system of files. It stands out from traditional file storage methods due to its unique way of storing and accessing files, directories, websites, and data.

What is IPFS for dummies? ›

IPFS stands for Interplanetary File System, a decentralized peer-to-peer file sharing system. Different from the common Internet scheme (HTTP/HTTPS), IPFS is an Internet protocol (or system) that allows people to access content without the need for a centralized server.

What is IPFS IO used for? ›

IPFS is a modular suite of protocols for organizing and transferring data, designed from the ground up with the principles of content addressing and peer-to-peer networking . Because IPFS is open-source , there are multiple implementations of IPFS.

What is the difference between IPFS and HTTP? ›

IPFS is relatively newer and is not yet as popular as HTTP. HTTP support is inbuilt on almost all machines. To run IPFS you need to access it using the HTTP to IPFS portal or manually setup up an IPFS node on your machine. HTTP is used by almost everyone to access the web.

What is CloudFlare IPFS used for? ›

The Interplanetary File System (IPFS) is a protocol and peer-to-peer (P2P) distributed network for storing and sharing data; the nodes within an IPFS network contribute to a distributed file system.

Top Articles
What Is Segregated Witness (SegWit)? | River Learn - Bitcoin Technology
Top 10 Countries with the Highest Number of Crypto Users in 2022
DPhil Research - List of thesis titles
Shoe Game Lit Svg
Lesson 3 Homework Practice Measures Of Variation Answer Key
Alaska Bücher in der richtigen Reihenfolge
Love Compatibility Test / Calculator by Horoscope | MyAstrology
Culvers Tartar Sauce
2016 Hyundai Sonata Price, Value, Depreciation & Reviews | Kelley Blue Book
Shemal Cartoon
Chicken Coop Havelock Nc
Lenscrafters Huebner Oaks
Drago Funeral Home & Cremation Services Obituaries
Inter-Tech IM-2 Expander/SAMA IM01 Pro
Accuweather Mold Count
Touchless Car Wash Schaumburg
683 Job Calls
Cookie Clicker Advanced Method Unblocked
Silky Jet Water Flosser
Craigslist Apartments In Philly
Avatar: The Way Of Water Showtimes Near Maya Pittsburg Cinemas
Helpers Needed At Once Bug Fables
Geico Car Insurance Review 2024
Gillette Craigslist
Chelsea Hardie Leaked
Mjc Financial Aid Phone Number
Pokémon Unbound Starters
Perry Inhofe Mansion
October 19 Sunset
Bernie Platt, former Cherry Hill mayor and funeral home magnate, has died at 90
Litter-Robot 3 Pinch Contact & DFI Kit
Federal Student Aid
What Time Is First Light Tomorrow Morning
Carespot Ocoee Photos
#1 | Rottweiler Puppies For Sale In New York | Uptown
The Boogeyman Showtimes Near Surf Cinemas
Gets Less Antsy Crossword Clue
Mohave County Jobs Craigslist
Taylor University Baseball Roster
B.C. lightkeepers' jobs in jeopardy as coast guard plans to automate 2 stations
Directions To The Closest Auto Parts Store
Walmart Pharmacy Hours: What Time Does The Pharmacy Open and Close?
Celsius Claims Agent
Rs3 Nature Spirit Quick Guide
Television Archive News Search Service
Gon Deer Forum
Perc H965I With Rear Load Bracket
Dicks Mear Me
Online College Scholarships | Strayer University
Dineren en overnachten in Boutique Hotel The Church in Arnhem - Priya Loves Food & Travel
Les BABAS EXOTIQUES façon Amaury Guichon
Latest Posts
Article information

Author: Sen. Ignacio Ratke

Last Updated:

Views: 5668

Rating: 4.6 / 5 (76 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Sen. Ignacio Ratke

Birthday: 1999-05-27

Address: Apt. 171 8116 Bailey Via, Roberthaven, GA 58289

Phone: +2585395768220

Job: Lead Liaison

Hobby: Lockpicking, LARPing, Lego building, Lapidary, Macrame, Book restoration, Bodybuilding

Introduction: My name is Sen. Ignacio Ratke, I am a adventurous, zealous, outstanding, agreeable, precious, excited, gifted person who loves writing and wants to share my knowledge and understanding with you.