This technology didn’t just pop up overnight! In this section we’ll cover the background of decentralized storage from torrents until now, and go through some basics terminology to get you up to speed.
In this module, we cover how to set up your own IPFS node, and how to push and pull files from the network. We’ll also go over the addressing structure and get you caught up on the background of this technology.
State of the Industry
IPFS is just the beginning - in this module we'll catch you up on the developments currently affecting the space, and cover the various cryptocurrencies and tokens that have proposed incentive models for peer to peer storage.
Storing & Retrieving Files
We’re now online, so we can try downloading a file from the network.
ipfs cat /ipfs/QmW2WQi7j6c7UgJTarActp7tDNikE4B2qXtFCfLPdsgaTQ/cat.jpg > cat.jpg
$ open cat.jpg
If everything is working properly you should now see an image file open with a picture of a cat! This image file is now on your computer, but you didn’t get it over HTTP, and it may have been downloaded from any of hundreds of IPFS nodes around the world.
initializing ipfs node at /home/institute/.go-ipfs
generating 2048-bit RSA keypair...done
peer identity: QmT6s9dZXRFbxGhvSW68BdZEFF9mHaTW6erH3TNMrRGZfX
You can also push files to the network:
hash=`echo "I <3 The Blockchain Institute" | ipfs add -q`
This will generate a hash of your string message and store it at a new IPFS hashed URL:
This should now return:
I <3 The Blockchain Institute