IPFS / IPLD notes

IPLD is the data layer of IPFS

and

IPFS is a block store for IPLD.

It’s useful to launch IPFS Kudo with docker and then run the commands like docker exec ipfs_kudo ipfs swarm peers.

A few common commands

ipfs init
ipfs daemon &
ipfs swarm peers

ipfs add myfile.txt
ipfs add -r myfolder

ipfs pin add CID
ipfs get CID 
ipfs cat CID

ipfs resolve /ipns/ipns-name

MFS (Mutable File System)

ipfs files mkdir myfolderinipfs
ipfs files ls /myfolderinipfs
ipfs add myfile.txt
ipfs files cp /ipfs/QmSjPXgp8N6sczhmTzaZjp3LJgf61Jc4QRCkkF8LoVqXWg /myfirstfolder/myfile2.txt
ipfs files ls /myfolderinipfs/

Note that myfile.txt cand myfile2.txt are the same file but can have different names.

DAG (Direct Acyclic Graph) - DAG Builder

LIBP2P2

Who uses libp2p:

  • IPFS
  • Ethereum2
  • Filecoin
  • Polkadot
  • Berty

lib2p2 roadmap