News for hackers. Stuff that matters.
Re:Multihash – self-describing hashes by thwarted on Sunday February 26, 2017 @07:07PM (#13740840)
A mapping table from identifiers to hash implementations already exists in the RFCs and code for pgp and TLS.

And variable length ints are already a thing, also in crypto, in the form of bignums.

Re:Multihash – self-describing hashes by smsm42 on Tuesday February 28, 2017 @12:52PM (#13755765)
Oh, variable ints are surely a thing. You don't even have to go as far as crypto - if you're using UTF-8, you are using the same idea. Which also reveals its downsides once you need to parse utf-8 strings into parts and do operations like wrapping or splitting. That's why I wonder if they are really needed there. I mean, the space optimization is obvious, but I suspect it might be premature, unless you are storing really billions or trillions of hashes and need to squeeze out every single kilobyte out of it.