3 ms·
How would you produce the same hash for different encodings of data?
by cle 4y ago
How would you produce the same hash for different encodings of data?
- anonymousnotme 4y agonot sure that I follow what you are asking. I would expect if sha2-256 is used then the content ID would be the same. However, depending on how the content is chunked, the content ID will change. Two disadvantages that I see: 1. if new packages are produced for a release of open source, could I see if there is a copy available via IPFS? No, because one can't predict how it would be chunked. So, one would have to download and then derive a content ID and one can only tell if it is available if the same chunking algorithm is available. 2. if I want to push a package or other binary, can I figure out if it is already available via IPFS? No, one can't.