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

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

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



How to Create IPFS Hash in C# or Xamarin Forms.?

Updated October 31, 2018 11:28 AM


Generate IpfsHASH

Updated March 30, 2018 09:28 AM

What is a block hash?

Updated December 13, 2017 04:28 AM