News for hackers. Stuff that matters.
Re:Updating the Git protocol for SHA-256 by mathnmusic on Saturday June 20, 2020 @09:56AM (#23583951)
One of the mistakes Git made was that the hashes don't describe what algorithm was used to generate them. That makes backward compatibility and incremental upgrades harder. MultiHash is a solution for such issues: https://github.com/multiformats/multihash
Re:Updating the Git protocol for SHA-256 by heavenlyblue on Saturday June 20, 2020 @04:16PM (#23586893)
You don’t need a specialised solution for this, just prefix the v1 of your hashing algorithm with some constant and then you can easily extend it.