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

Mapping for alternate hashes (hash index) #89

Open
btrask opened this issue Dec 18, 2015 · 5 comments

Comments

Projects
None yet
5 participants
@btrask
Copy link

commented Dec 18, 2015

(Moved from ipfs/go-ipfs#2098)

On Tuesday @jbenet was so kind as to spend a couple hours talking to me, where I got a chance to voice some of my concerns regarding ipfs/go-ipfs#1953.

It seemed like one aspect Juan was amenable to was a way of looking up blocks (and possibly files) by hashes besides the primary hash (SHA-2 256) used by IPFS internally.

Features Juan wanted to see:

  • An index implemented as part of the DHT for going from hash -> hash
  • Flexibility for adding new hash algorithms (and dropping old ones?) over time (e.g. moving to SHA-3)
  • Nodes should not be required to compute/verify all hashes themselves, for efficiency
  • Some sort of trust/reputation system to weed out bad hashes and bad actors
  • Ultimately, the index will not be perfectly reliable and end recipients will probably want/need to verify the data for themselves

Features I wanted to see:

  • Hashes of file content (not just block content) mapping to root blocks (ipfs/go-ipfs#1953)
  • A first-class interface and namespace (my suggestion was /ipls/[hash], for "link system")
  • Emphasis on this mode for file-centric (rather than block-centric) uses (e.g. ipfs add returning a file hash rather than a root block hash)

We agreed that this system should not be built on top of IPNS. Hashes shouldn't rely on owners who have control of them, and don't need to be mutable.

It sounded like this was a fairly distant goal, but I figured we should at least start documenting our ideas.

Thanks again Juan for talking!

@harlantwood

This comment has been minimized.

Copy link

commented Dec 19, 2015

Excellent. Much needed in the long term. Thanks for documenting.

@davidar

This comment has been minimized.

Copy link
Member

commented Jan 8, 2016

👍

@lgierth

This comment has been minimized.

Copy link
Member

commented Jan 11, 2016

This might also be useful for supporting other tools' public-key schemes

@btrask

This comment has been minimized.

Copy link
Author

commented Jan 11, 2016

Yes, the same index system could work for both, but I hope the address spaces are kept separate (similar to /ipfs/ versus /ipns/).

@keks

This comment has been minimized.

Copy link

commented Sep 30, 2016

I'm proposing to use something along the lines of https://github.com/dedis/cosi for this, together with a lightweight reputation system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.