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

IETF draft: Content-Digest and Want-Content-Digest #185

Open
da2x opened this issue Sep 28, 2021 · 3 comments
Open

IETF draft: Content-Digest and Want-Content-Digest #185

da2x opened this issue Sep 28, 2021 · 3 comments
Labels
need/analysis Needs further analysis before proceeding P2 Medium: Good to have, but can wait until someone steps up

Comments

@da2x
Copy link

da2x commented Sep 28, 2021

A heads up about draft-ietf-httpbis-digest-headers-06:

This document defines HTTP fields that support integrity checksums. The Digest field can be used for the integrity of HTTP representations.
The Content-Digest field can be used for the integrity of HTTP message content. Want-Digest and Want-Content-Digest can be used to indicate a sender's desire to receive integrity fields respectively.

It’s an IETF standardization effort of interest to IPFS integration efforts into web browsers. The standardized Content-Digest: cid=bafy.. response header could replace x-ipfs-path: /ipfs/bafy... The standardized Want-Content-Digest: cid request header could be used by clients to indicate they support IPFS.

@da2x da2x added the need/triage Needs initial labeling and prioritization label Sep 28, 2021
@lidel
Copy link
Member

lidel commented Oct 8, 2021

Sounds like the draft you linked attempts to compliment/supersede actual RFCs:

Given this one is still a draft, but introduces Content-Digest and Want-Content-Digest: header that offers new "protocol upgrade" possibilities, let's keep it open for now and see how it goes.

Obligatory note on Verifiable Gateway responses:
The usual nuance here is that for bigger files, a CID is not a hash of a file, but the root of a DAG representing chunked data.
This means one can't verify the hash without fetching additional metadata about the DAG somehow.
Related reading: #128

@lidel lidel added need/analysis Needs further analysis before proceeding P2 Medium: Good to have, but can wait until someone steps up and removed need/triage Needs initial labeling and prioritization labels Oct 8, 2021
@lidel lidel changed the title Adopt HTTP Content-Digest IETF draft: Content-Digest and Want-Content-Digest Oct 8, 2021
@lidel
Copy link
Member

lidel commented Jan 3, 2023

@autonome
Copy link

The digest bits still moving forward, latest update Feb 2024: https://datatracker.ietf.org/doc/html/rfc9530

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need/analysis Needs further analysis before proceeding P2 Medium: Good to have, but can wait until someone steps up
Projects
None yet
Development

No branches or pull requests

3 participants