-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The dag
and files
distinction
#575
Comments
Right now,
https://github.com/jbenet/go-ipfs/tree/master/core/io |
@jbenet for the alpha, would you say that this issue is mostly one of documentation? |
@jbenet If youre gonna be done with your issues tonight, could you take this one on? |
|
👍 to
|
dag
and unixfs
distinctiondag
and files
distinction
I can verify that I'm confused. I find the following in particular to be especially startling:
What!? Different hash? And the new has doesn't seem to work as a file: http://ipfs.hobbs.cz/ipfs/zdpuAtM2TxQ3SQiMP99NoGusEQmy2jVjwwgzGew183s4DtCnP shows: ipfs cat /ipfs/zdpuAtM2TxQ3SQiMP99NoGusEQmy2jVjwwgzGew183s4DtCnP: unrecognized node type |
So, the problem here is that IPFS nodes are stored in the DagProtobuf format (the It would be great to fix this however, the only solution we (wel, @jbenet) can think of is to not re-encode. That is, make †@diasdavid pointed out to me that |
This is a known bug. Currently, IPFS only supports DagProtobuf nodes. Eventually, it should support all IPLD node types but this will take some work. |
@Stebalien any update on ipfs supporting all IPLD node types? I'd like to publish IPLD objects to IPNS for my decentralized ID (DID) spec. Thanks! |
@jonnycrunch that's actually a different issue. I was referring to the fact that unixfs should only care about the structure of the IPLD object, not the format. However, that won't let you stick arbitrary ipld objects into ipfs (as ipfs files, anyways). You're issue is really that we haven't implemented the |
One complicating piece for the user is the distinction of
ipfs
andipfs unix
. right nowipfs {add, cat, ls}
conflate the two. And there may be a future where different datastructures can be mounted to expose things differently.Overall, we need to go through the codebase and:
merkledag
andunixfs
usestour
clearly talk about thisNOTE: the following is speculative. these mount examples are a lot of work and not in our near future. They're just an example of how the different models work
note well what each of these commands does!!
The text was updated successfully, but these errors were encountered: