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

Provide hash for HTTP/HTTPS content URIs #134

Open
justinmeiners opened this issue Nov 15, 2018 · 3 comments
Open

Provide hash for HTTP/HTTPS content URIs #134

justinmeiners opened this issue Nov 15, 2018 · 3 comments

Comments

@justinmeiners
Copy link

Although most examples host content on IPFS, the spec suggests that other hosts such as HTTP could be used.

Any URI which contains a cryptographic hash which can be used to verify the integrity of the content found at the URI.

My question is, how should this be applied to HTTP/HTTPS? For example, to pull content from Github, I would also like to verify the download with a hash. How could I specify this hash?

@justinmeiners justinmeiners changed the title hash for HTTP/HTTPS content URIs Provide hash for HTTP/HTTPS content URIs Nov 15, 2018
@njgheorghita
Copy link
Contributor

njgheorghita commented Nov 15, 2018

In my opinion, it's really left up to the implementer to verify http(s) content however they desire. In py-ethpm we require http(s) uris to conform to this scheme. This definitely might change down the road, but for now it's what we're going with

@njgheorghita
Copy link
Contributor

You can also check out the Manifest URIs section of the ERC for another option.

@justinmeiners
Copy link
Author

@njgheorghita Thanks for this info. I understand its the implementor's job to verify, it would just be nice if there was a standard optional place for putting a hash. Using the URI fragment looks like a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants