Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Explain how to create the hash #70

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/proposals/PROPOSAL_E.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ For registries that do not support the `referrers` API, a tag MUST be pushed for
- E.g. `registry.example.org/project:sha256-0000000000000000000000000000000000000000000000000000000000000000.0404040404040404.sbom`
- `<alg>`: the digest algorithm
- `<ref>`: the digest from the `refers` field (limit of 64 characters)
- `<hash>`: the digest of this artifact (limit of 16 characters)
- `<hash>`: the digest of this artifact (first 16 characters)
imjasonh marked this conversation as resolved.
Show resolved Hide resolved
- `<type>`: type of artifact for filtering (limit of 5 characters)
- Querying for referrers requires the client to get the tag listing, and filter for matching `<alg>`, `<ref>`, and `<type>` entries.
- Adding a `<hash>` of the artifact allows multiple artifacts of the same type to exist with little risk of collision or race conditions.
Expand Down