This is perhaps very basic question but I couldn’t find in my search. Assuming the file content doesn’t change even single bit, would IPFS CID never change even if it’s being added/pinned by different users?
Would this assumption stay true for foreseeable future? I know it depends on hash algorithm, so just by knowing what hash algorithm was used (SHA-256), the IPFS CID would be reproducable for foreseeable feature right? Or is there other information that needs to be stored as well?
The answer to your question is yes*, the CID for the same file will always be the same no matter who hashes it.
The exception to this is when/if the IPFS devs make a change to the protocol (as we are expecting soonish) that changes the hashing algorithm and results in a different CID. I’m sure they will tell us well in advance of this happening.
Thank you very much for all the replies. So In a nutshell
The CID should stay the same for a file of any size, as long as the same multihash and CID version is used.
The multihash or chunking algorithm may change in future, but will be 100% backward compatible.
So my final question and i would be very grateful for the answer, what parameters should i store to be able to replicate the same CID in case IPFS version changes later? I know hash algorithm number is one thing i need. Anything else i would need?