-
Notifications
You must be signed in to change notification settings - Fork 115
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
is it too late for a suffix version? #1
Comments
Yeah, non-uniform distribution on mixed-hash-function hashes will affect various applications. You can reverse the hash (as you pointed out elsewhere, and we've discussed on #ipfs), and that gives the your multihashes a similar distribution to the hash fn (most of which will be uniform). I considered the suffix idea for a while, but decided against it (so far) based on these arguments:
|
just curious, whats the use-case for storing the length of the hash? |
truncated hashes. some people, for example, use a sha2-512 truncated to 256 bits instead of sha2-256 because in some archs it's faster. |
- jbenet's rationale: multiformats/multihash#1 (comment)
- jbenet's rationale: multiformats/multihash#1 (comment)
- jbenet's rationale: multiformats/multihash#1 (comment)
- jbenet's rationale: multiformats/multihash#1 (comment)
- jbenet's rationale: multiformats/multihash#1 (comment)
- jbenet's rationale: multiformats/multihash#1 (comment)
- jbenet's rationale: multiformats/multihash#1 (comment)
some things sort by prefixes (i.e. leveldb), and you would maybe rather keep the hashes uniformly distributed (at least you can reason about it).
For example, this would play much nicer with leveldb if it was a suffix not a prefix.
The text was updated successfully, but these errors were encountered: