3 ms·
This works by doing range requests on an sqlite DB. Very cool, but does ipfs support verification of partial reads like this? (or would I need to download the
by Retr0id 3y ago
This works by doing range requests on an sqlite DB.
Very cool, but does ipfs support verification of partial reads like this? (or would I need to download the whole DB and check the hash?)
I can think of some ways it could work using merkle trees or similar, but I have no idea what ipfs does under the hood, if anything.
- ianopolous 3y agoIPFS doesn't currently. But there are some in the community working on exactly this using Blake3 and BAO.
- whyrusleeping 3y agoThe incremental requests are verified if running through your own node as a side effect of loading the data
- ianopolous 3y agoG'day Why! This is operating through the gateway. So you have to trust the gateway currently. Yes, you can move the gateway to your machine and then the trust requirement doesn't extend over the network. However with local ipfs, bitswap doesn't support range requests, so you're at least downloading the enclosing blocks which could be 2 MiB for 1 KiB requested data, or 2000X more data than you need.