Interplanetary File System (IPFS) | Cloudflare Web3 docs (2024)

The Interplanetary File System (IPFS) is a distributed file storage protocol that allows computers all over the globe to store and serve files as part of a giant peer-to-peer network.

Any computer, anywhere in the world, can download the IPFS software and start hosting and serving files.

If someone runs IPFS on their computer and uploads a file to the IPFS network, that file can be viewed and downloaded by anyone else in the world who is also running IPFS.

Content Identifiers

Every file added to IPFS is given a unique address derived from a hash of the file’s content. This address is called a Content Identifier (CID) and it combines the hash of the file and a unique identifier for the hash algorithm used into a single string.

IPFS currently uses SHA-256 by default, which produces a 256 bit (32 byte) output, and that output is encoded with Base58. Base58 is a binary-to-text encoding scheme originally developed for Bitcoin and has the advantage that letters that might be mistaken for each other in certain fonts (like zero and the capital letter O) are not included.

A CID will typically look something like QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6uco.

However, the same hash could be encoded with Base32 or other supported hash algorithms including SHA-3 and BLAKE2.

Uploading to IPFS

IPFS is fundamentally a Distributed Hash Table(DHT) which maps from CIDs to people who have the content addressed by that CID. The hashtable is distributed because no single node in the network holds the entiretable. Instead, each node stores a subset of the hash table, as well asinformation about which nodes are storing other relevant sections.

When someone talks about ‘uploading’ content to IPFS, what they really mean(usually) is that they are announcing to the network that they have some content by adding an entry to the DHT that maps from CID to their IP address. Somebody else who wants to download their data would look up the CID in the DHT, find the person’s IP address, and download the data directly from them.

The speed and reliability advantages of IPFS come from the fact that many people can upload the same data, and then downloads will be spread between all of them. If any one of them goes offline or decides to stop hosting the data, the others can pick up the slack.

Directories

You can upload more than just individual files. For example, consider a folder called example, which has exactly one file, example_text.txt, containing the string I'm trying out IPFS.

If that folder were uploaded with the command ipfs add -r ./example, both the folder and the file it contains would have their own CID. In this case, the folder would have the CID QmdbaSQbGU6Wo9i5LyWWVLuU8g6WrYpWh2K4Li4QuuE8Fr while the file would have the CID QmXnnyufdzAWL5CqZ2RnSNgPbvCc1ALT73s6epPrRnZ1Xy.

You could then access the file in two ways:

  • Requesting the file directly:
    https://cloudflare-ipfs.com/ipfs/QmXnnyufdzAWL5CqZ2RnSNgPbvCc1ALT73s6epPrRnZ1Xy
  • Requesting the file by name, from the directory:
    https://cloudflare-ipfs.com/ipfs/QmdbaSQbGU6Wo9i5LyWWVLuU8g6WrYpWh2K4Li4QuuE8Fr/example_text.txt

While the CID of a file will only change if the file itself changes, the CID of a directory changes any time any of the files in it change, or if any files are added/removed.

Directories make it possible to address an entire static website with a single CID and access different pages of the website by requesting different files in the directory.

For help with additional concepts, refer to the IPFS documentation.

Interplanetary File System (IPFS) | Cloudflare Web3 docs (2024)
Top Articles
Louis Vuitton vs. Chanel: Which Is More Expensive?
how many acres do you need to be self-sufficient?
Barstool Sports Gif
Www.mytotalrewards/Rtx
The UPS Store | Ship & Print Here > 400 West Broadway
Euro (EUR), aktuální kurzy měn
Wizard Build Season 28
Collision Masters Fairbanks
Steamy Afternoon With Handsome Fernando
Ribbit Woodbine
Stolen Touches Neva Altaj Read Online Free
Skip The Games Norfolk Virginia
Seafood Bucket Cajun Style Seafood Restaurant in South Salt Lake - Restaurant menu and reviews
Costco Gas Foster City
Hartland Liquidation Oconomowoc
U/Apprenhensive_You8924
Lcwc 911 Live Incident List Live Status
Jalapeno Grill Ponca City Menu
Vrachtwagens in Nederland kopen - gebruikt en nieuw - TrucksNL
My Homework Lesson 11 Volume Of Composite Figures Answer Key
We Discovered the Best Snow Cone Makers for Carnival-Worthy Desserts
Sea To Dallas Google Flights
Air Traffic Control Coolmathgames
Jobs Hiring Near Me Part Time For 15 Year Olds
Naval Academy Baseball Roster
Restored Republic June 16 2023
Wsbtv Fish And Game Report
Papa Johns Mear Me
4 Methods to Fix “Vortex Mods Cannot Be Deployed” Issue - MiniTool Partition Wizard
Catchvideo Chrome Extension
Stephanie Bowe Downey Ca
Pixel Combat Unblocked
Ilabs Ucsf
6465319333
Nail Salon Open On Monday Near Me
ShadowCat - Forestry Mulching, Land Clearing, Bush Hog, Brush, Bobcat - farm & garden services - craigslist
Pawn Shop Open Now
Indio Mall Eye Doctor
Complete List of Orange County Cities + Map (2024) — Orange County Insiders | Tips for locals & visitors
Birmingham City Schools Clever Login
Guy Ritchie's The Covenant Showtimes Near Grand Theatres - Bismarck
Lamont Mortuary Globe Az
Courtney Roberson Rob Dyrdek
'The Nun II' Ending Explained: Does the Immortal Valak Die This Time?
Makes A Successful Catch Maybe Crossword Clue
Theater X Orange Heights Florida
Hillsborough County Florida Recorder Of Deeds
Lesly Center Tiraj Rapid
3367164101
SF bay area cars & trucks "chevrolet 50" - craigslist
Lira Galore Age, Wikipedia, Height, Husband, Boyfriend, Family, Biography, Net Worth
Www.card-Data.com/Comerica Prepaid Balance
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 6256

Rating: 4.9 / 5 (49 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.