News for hackers. Stuff that matters.
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.
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.
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]

[0]: http://multiformats.io/multihash/