Skip to content
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

Relative paths in IPLD #112

Closed
nicola opened this issue Jun 13, 2016 · 3 comments
Closed

Relative paths in IPLD #112

nicola opened this issue Jun 13, 2016 · 3 comments

Comments

@nicola
Copy link
Member

nicola commented Jun 13, 2016

Originally in interplanetary paths I included the possibility of having relative paths.

Here I am proposing to add in the specs (and in the js-ipld implementation), the ability to resolve relative paths.
Having relative paths saves space (../, instead of a full hash), helps avoiding splitting things in multiple pieces (../ instead of creating a new object) and finally, allow circular relationships: merkle graph!

{
  nicola: { '/': hashNicola },
  david: { '/': hashDavid }
}

{
  name: "Nicola",
  friends: [{'/':'../david' }]
}

{
  name: "David",
  friends: [{'/':'../nicola' }]
}
@nicola
Copy link
Member Author

nicola commented Jun 13, 2016

@nicola nicola mentioned this issue Jun 15, 2016
15 tasks
@mildred
Copy link
Contributor

mildred commented Jun 15, 2016

This would be really nice, but perhaps not something to have upfront. IPLD is complicated enough as it is.

There is also a problem with relative paths. If you do not have the context (the parent directory) you cannot resolve them. We should not abuse them.

@nicola
Copy link
Member Author

nicola commented Jul 25, 2016

Moved to new organization, continue the conversation here: ipld/specs#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants