Skip to content
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

Gateway response is unverifialbe by clients #1594

Closed
krl opened this issue Aug 20, 2015 · 2 comments
Closed

Gateway response is unverifialbe by clients #1594

krl opened this issue Aug 20, 2015 · 2 comments
Labels
need/community-input Needs input from the wider community topic/gateway Topic gateway

Comments

@krl
Copy link
Contributor

krl commented Aug 20, 2015

In some discussions i realized that the response we get from the gateways are not verifiable to the hash requested. This is because gateways only transmit the concatenated data portions of the tree.

A solution to this could be having an extra header in the response, that is a description of the tree-structure of the file, including all the bytes that did not make it into the response body, and the offsets into the body. When these are concatenated, we could hash it client side, and be sure we got the right thing.

This is mostly of interest for browser plugins. Thoughts on this?

@jbenet
Copy link
Member

jbenet commented Aug 20, 2015

i think just providing the hash root, the plugins could use object api to check

@krl
Copy link
Contributor Author

krl commented Aug 24, 2015

that would make it a roundtrip hell though, probably not a good thing something we'd want widely installed constantly hammering requests.

@em-ly em-ly added the need/community-input Needs input from the wider community label Aug 25, 2016
@lanzafame lanzafame added the topic/gateway Topic gateway label Jul 16, 2019
@krl krl closed this as completed May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/community-input Needs input from the wider community topic/gateway Topic gateway
Projects
None yet
Development

No branches or pull requests

4 participants