-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verify HTTP Car Requests #195
Comments
The way I imagined this being done is similar to how I did the go-car stdin extractor: https://github.com/ipld/go-car/blob/3476971d97cd992991ade75087d9273adcf659e6/cmd/car/extract.go#L378-L444 But the big catch with this approach is buffering.
|
Ideally this should use the same validation that the |
coming back to elaborate on 2/ 3: My understanding of the intention of the trustless gateway spec is to require a strict traversal ordering. That should remove potential for out of order blocks / should allow for deterministic / byte-for-byte output matches. |
I'm not planning to handle this in that PR, but that'd be a follow up (see ipfs-inactive/bifrost-gateway#62, it's currently listed as step 4 but maybe 5 will end up coming first).
This should make verification simpler to implement. idk if users should be allowed to ask for more data + hope gzip saves them in order to reduce memory usage from buffering as Rod alluded to. Something to figure out in the spec PR for what people want here.
That's not necessarily true, there are a few more things that might need to be specified beyond traversal order see ipfs/specs#402 (comment) and the related thread. |
Goals
Building on #193 , add verification of CAR blocks as we download.
Implementation
My recommendation for implementation:
The text was updated successfully, but these errors were encountered: