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.
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.
Comments (128) 32 threads
Show all comments
Showing thread 7 of 32
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.
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.