2018/06/04 Chao This is a simplified version of ipfs. The intend is to understand and learn how ipfs work. GPLv2 License.
example:
- add a file: ./dfs add map.jpg (will give hash QmZUyJE41WoEMKUNWzv97LvE4YbSEE63wGp2peneq1ojf7)
- retrive a file from the hash: ./dfs cat QmZUyJE41WoEMKUNWzv97LvE4YbSEE63wGp2peneq1ojf7 > map1.jpg
- check they are equal: diff map.jpg map1.jpg