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

Fix: doublehashes can use different hashes #26

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

hsanjuan
Copy link
Collaborator

Currently, we tried to parse double-hashes as CIDv0s, which implies that SHA256 was used to hash the double-hash. Instead we should try to parse a multihash directly, and support any hashing function for the double-hash.

The rule14 test has been changed to use a blake3 double-hash, which previously broke at the parsing level.

Currently, we tried to parse double-hashes as CIDv0s, which implies that
SHA256 was used to hash the double-hash. Instead we should try to parse a
multihash directly, and support any hashing function for the double-hash.

The rule14 test has been changed to use a blake3 double-hash, which previously
broke at the parsing level.
@hsanjuan hsanjuan self-assigned this Oct 23, 2023
@hsanjuan hsanjuan merged commit 7650037 into master Oct 23, 2023
6 of 8 checks passed
@hsanjuan hsanjuan deleted the fix-doublehash-with-different-hash branch October 23, 2023 11:01
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

Successfully merging this pull request may close these issues.

1 participant