Lurker News

Comments (128) 32 threads

Show all comments

Showing thread 7 of 32

Retr0id1 reply#
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.

ianopolous1 reply#
IPFS doesn't currently. But there are some in the community working on exactly this using Blake3 and BAO.
whyrusleeping1 reply#
The incremental requests are verified if running through your own node as a side effect of loading the data
ianopolous#
G'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.