You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Various organizations are exposing IPFS content via Public HTTP Gateways (eg. Cloudflare).
There are users who can't run local IPFS node, but still could get some guarantees provided by content-addressing if they have software capable of re-calculating CIDs from arbitratry payloads.
This issue tracks ways we could do that.
Problem statement
It is not enough to "fetch data from gateway and calculate CID", as we don't know how DAG looked like, so if CID does not match, we don't know if it is false-negative.
Improves on top of B because it does not require client to know/implement Unixfs/IPLD specifics, just read hash function type from CID and then compare it against the hash of entire file.
Requires separate provider records, so won't work for legacy data/links
Gateway can return all parameters needed for re-building DAG during validation (or CID can be validated directly)
supports only DAGs created with default settings (hash, chunker etc)
https://tools.ietf.org/html/rfc6249: Metalink/HTTP: Mirrors and Hashes
Very relevant RFC, which provides HTTP-native semantics for returning Digest with the payload:
Summary
Various organizations are exposing IPFS content via Public HTTP Gateways (eg. Cloudflare).
There are users who can't run local IPFS node, but still could get some guarantees provided by content-addressing if they have software capable of re-calculating CIDs from arbitratry payloads.
This issue tracks ways we could do that.
Problem statement
Use Cases
Work
http://ipfs.io/api/v0/Resources
Prior Art
(UC2) Cloudflare
https://tools.ietf.org/html/rfc6249: Metalink/HTTP: Mirrors and Hashes
Very relevant RFC, which provides HTTP-native semantics for returning Digest with the payload:
IPFS