Expand description
Reply packs: the signed replies a release ships for its pinned vstd (ADR 0062).
A pack is one file holding ordinary signed shared entries (ADR 0017),
each exactly as sign_entry builds it. A
pack adds no trust of its own. A reader looks an entry up by its key and
then applies every check of
verify_entry against the keys it trusts
for that pack. One file rather than a directory keeps a release archive
small, and lets the release index bind the whole store with one digest.
Format. The line MAGIC, then one record per entry, in ascending
key order: the 32 key bytes, the entry length as a little-endian u32,
and the entry bytes. A key appears once. Nothing may follow the last
record.
Structs§
- Pack
- A parsed pack: its bytes and where each entry lies in them.
Constants§
- MAGIC
- The first line of every pack.
- MAX_
PACK_ BYTES - The largest pack a reader accepts: 256 MiB.
Functions§
- build
- Builds a pack of
disk’s exportable entries, each signed withsecret.