This repository has been archived by the owner on Mar 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 298
Verify hashes on each request #397
Comments
aakilfernandes
changed the title
Request: Verify ipfs.get by hashing locally
Request: Verify ipfs.get by hashing in client
Oct 20, 2016
IPFS definitely verifies data from other nodes. See white paper, section 3.5. I think https://github.com/ipfs/go-ipfs/blob/master/exchange/bitswap/message/message.go#L105 is where blocks from peers are checked. Am I misunderstanding your question? |
Ipfs nodes don't trust each other, but js-ipfs-api trusts the node. For example if I do
I'm trusting that the node at |
Oh I see. The simplest solution I can think of is to expose ipfs add --only-hash in the js api so you can compare the two hashes. |
daviddias
changed the title
Request: Verify ipfs.get by hashing in client
Verify hashes on each request
Jul 26, 2017
|
ghost
removed
the
ready
label
Apr 30, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
My understanding is that after getting a file from a node, there is no additional check to verify the returned file matches the hash. It would be good to hash the file in the client to make sure the file is correct. That way, it would be possible to use untrusted nodes (for example https://ipfs.infura.io)
The text was updated successfully, but these errors were encountered: