You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 0x20 byte sha2-512 multihash is a valid multihash. It means the resulting 512-bit hash has been truncated to 256-bits and only those first 256-bits of the hash should be checked when validating the hash (see #1 (comment)).
Although, that reference is still just a comment in an issue, it really should be added to the actual spec if it is going to be the standard.
New to multihash (sounds sound ;) ) so pardon my ignorance and possibly RTFM question.
https://github.com/multiformats/multihash/blob/master/README.md#idea-self-describe-the-values-to-distinguish
has an example for
sha3 256
which starts with1420caad
, but according to the multihash table (https://github.com/multiformats/multihash/blob/master/README.md#table-for-multihash-v100-rc-semver)0x16 sha3-256
. So why example doesn't start with16
? (I guessed that those examples are autogenerated so there must be no mistakes/bug, thus I guess it is all my misunderstanding)The text was updated successfully, but these errors were encountered: