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) #2098

Closed
btrask opened this issue Dec 17, 2015 · 2 comments
Closed

Mapping for alternate hashes (hash index) #2098

btrask opened this issue Dec 17, 2015 · 2 comments

Comments

@btrask
Copy link

btrask commented Dec 17, 2015

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 #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 (Hash conversion for import/export and long term archival #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!

@jbenet
Copy link
Member

jbenet commented Dec 18, 2015

(Will respond more later) can we move this to notes repo? It is going to
affect everything and needs broad discussion.
On Thu, Dec 17, 2015 at 17:44 Ben Trask notifications@github.com wrote:

On Tuesday @jbenet https://github.com/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 #1953 #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 (eg 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:

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!


Reply to this email directly or view it on GitHub
#2098.

@btrask
Copy link
Author

btrask commented Dec 18, 2015

Moved to ipfs/notes#89

@btrask btrask closed this as completed Dec 18, 2015
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

2 participants