Re:Multihash – self-describing hashes
by _prometheus on Sunday February 26, 2017 @03:25PM
(#13739619)
Attackers can exploit that by cutting off a stream. it's best to be explicit.
[ Parent
| on HN ]
Hashes don't currently know their own lengths, so I don't see why they'd need to.
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]