Re:Multihash – self-describing hashes
by mtdewcmu on Sunday February 26, 2017 @03:30PM
(#13739652)
Hashes don't currently know their own lengths, so I don't see why they'd need to.
[ Parent
| on HN ]
Re:Multihash – self-describing hashes
by matt_kantor on Tuesday February 28, 2017 @12:31PM
(#13755530)
Putting this kind of metadata inline with your hashes is the entire point of multihash:
> Multihash is a protocol for differentiating outputs from various well-established hash functions, addressing size + encoding considerations. It is useful to write applications that future-proof their use of hashes, and allow multiple hash functions to coexist.[0]