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 wrong BLAKE multihash values #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

IS4Code
Copy link
Contributor

@IS4Code IS4Code commented Oct 25, 2024

The multihash values for the BLAKE hash family are incorrect ‒ they do not properly encode the hash algorithm identifier, which should be a varint and not just a plain 16-bit (big endian even?) integer. As currently written, those multihashes are coincidentally well-formed, but do not point to any sensible hash algorithms.

The examples on multiformats.io are correct, so I have used them to fix the examples here.

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