-
Notifications
You must be signed in to change notification settings - Fork 594
Description
Hi,
While working with kopia over the last days, I noticed that root and snapshot IDs are only 128 bit long, so they are the same size as md5 hashes. I suppose the same hash size is used for addressing content blocks, correct?
Given that even git, which used sha1 (160 bit) now moves to sha256 (256 bit), kopia should probably switch to a larger hash size as well. Kopia repos store an enormous amount of blocks, comparable to huge git repos, so the chance of a hash collision seems present here as well.
I don't know much about the internals of kopia's repo format, but if switching the hash size would require existing blocks to be re-hashed in order to rebuild the indexes, such a decision should probably be made as early as possible.
What do you think?
Best regards
Robert