-
Notifications
You must be signed in to change notification settings - Fork 300
Verify hashes on each request #397
Comments
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. |
|
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: