cose-hash-envelope#3
Merged
Merged
Conversation
Why: attest an external resource (not embedded claims) and support future proof of possession, per the DIEM direction. - Emblem is now a COSE_Sign1 hash envelope (draft-ietf-cose-hash-envelope): payload = SHA-256 of the resource; protected header carries 258 payload-hash-alg (-16), 259 preimage-content-type, 260 payload-location. - CWT claims ride in the protected header (RFC 9597, label 15), kept minimal: `sub` plus a `cnf` (RFC 8747) COSE_Key (EC2 P-256) for holder PoP. - New media type application/digital-emblem+cose; served by GET /api/emblem. - Example resource: GeoJSON for St. Stephen's Cathedral, Vienna (public/landmarks/stephansdom.json, application/json), marked protected. - verify re-fetches the resource and confirms its SHA-256 matches the payload. - cbor-hex annotates the new labels (CWT Claims, cnf, COSE_Key, 258/259/260). - Homepage terminal + steps + a "worked example" section demonstrate it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why: attest an external resource with a COSE hash envelope and support future proof of possession.
258payload-hash-alg (−16),259preimage-content-type,260payload-location.sub+cnf(RFC 8747) →COSE_Key(EC2 P-256) for holder proof-of-possession.application/digital-emblem+cose; served byGET /api/emblem./landmarks/stephansdom.json, application/json), marked protected.Verified end-to-end over live DNS (local): PROTECTED, signature + resource-hash both green.
tsc/lint/build clean.🤖 Generated with Claude Code