{"action":"opened","issue":{"url":"https://api.github.com/repos/ipfs/ipfs/issues/119","labels_url":"https://api.github.com/repos/ipfs/ipfs/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/ipfs/issues/119/comments","events_url":"https://api.github.com/repos/ipfs/ipfs/issues/119/events","html_url":"https://github.com/ipfs/ipfs/issues/119","id":114649616,"number":119,"title":"How are IPFS objects stored?","user":{"login":"sic2","id":1630716,"avatar_url":"https://avatars.githubusercontent.com/u/1630716?v=3","gravatar_id":"","url":"https://api.github.com/users/sic2","html_url":"https://github.com/sic2","followers_url":"https://api.github.com/users/sic2/followers","following_url":"https://api.github.com/users/sic2/following{/other_user}","gists_url":"https://api.github.com/users/sic2/gists{/gist_id}","starred_url":"https://api.github.com/users/sic2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sic2/subscriptions","organizations_url":"https://api.github.com/users/sic2/orgs","repos_url":"https://api.github.com/users/sic2/repos","events_url":"https://api.github.com/users/sic2/events{/privacy}","received_events_url":"https://api.github.com/users/sic2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-02T18:01:43Z","updated_at":"2015-11-02T18:01:43Z","closed_at":null,"body":"Thank you for this project first of all. \r\nI am trying to get my head around a couple of things. I have already read the paper (draft3) and watched some of the videos. \r\n\r\nMy first question is: how are IPFS objects stored? and where? \r\nI have noticed this directory in my machine `.ipfs/datastore` and it seem to contain logfiles, a manifest and a database file. However, none of these files is readable (I see only bytes) and I cannot find any tool to open them. I am assuming that IPFS objects are stored in the database file in some format. Otherwise, how else are they stored? This is a bit confusing because in the paper it looks like there are IPFS files containing JSON-like information about the DAG graph. However, I am not clear where these files are and what formats they have.\r\n\r\nMy second question is related to locations. IPFS uses DHTs, so when a peer receives a requests it looks for that hash (or multihash) and if found, it checks where it is in the machine (say `/User/Jonny/Documents/image_of_fish.jpg`). If that is how it works internally, where could I find this mapping under the `.ipfs/` directory? If that is not the case, how does the system know where the data is in the machine?\r\n\r\nMaybe a bit of more clarification on what is stored under `.ipfs/` and in what format would really help.\r\n\r\nThank you!\r\nIvan"}}