Closed Protonull closed 1 year ago
How have you tested this?
How have you tested this?
What do you mean? It's in the specification.
So basically it's just a header you're adding?
Quite the opposite, I'm removing header information because the length is already known, so there's no need to prefix the data with its length.
Lgtm then. Also why does it only use sha1? Isn't it deprecated?
why does it only use sha1? Isn't it deprecated?
SHA1 is guaranteed to be implemented by every JVM, and we don't need any cryptographic capabilities from our hashing function as we only use it for content based indexing with a data size cap. Some context: https://git-scm.com/docs/hash-function-transition/2.23.0
I think this is ready to merge then
This can be applied to other things too, of course, but didn't want to de-length-prefix everything at once.