Intro to IPFS

Storing Files



You can also push files to the network:

>_

creating a file

alex@ubuntu: ~/ $ hash=`echo "I <3 The Blockchain Institute -$(whoami)" | ipfs add -q`

This will generate a hash of your string message and store it at a new ipfs hash url.

>_

Download and read the file

alex@ubuntu: ~/ $ curl https://ipfs.io/ipfs/$hash
I <3 The Blockchain Institute -alex

IPFS Web

Watch out! The above curl request is actually a call to the IPFS web API. This is used as an access layer, and is fairly centralized, however the underlying file system is not.