is it possible to use IPFS Hash to ensure file integrity?

by Bauer Marius   Last Updated July 11, 2019 14:28 PM

My question is if i can use the IPFS Reference/Hash to ensure file integrity. In other words if i have a file can i use a specific Hashfunction to ensure that the generated Hash of that file is equal to the IPFS Hash of that file and therefore the file didnt change. Or do i need to generate an extra Hash for this purpose (f.e. sha256)?

thanks in advance.

Tags : ipfs hash


Answers 1


From IPFS docs:

-n,          --only-hash           bool   - Only chunk and hash - do not write to disk.

So what you might want to do is:

ipfs add --only-hash <ipfs-path>

You can read more here.

Miroslav Nedelchev
Miroslav Nedelchev
July 11, 2019 13:56 PM

Related Questions


Updated June 28, 2017 14:28 PM

Updated October 31, 2018 11:28 AM

Updated March 28, 2019 18:28 PM

Updated March 30, 2018 09:28 AM

Updated December 13, 2017 04:28 AM