Module derived_snapshot_archive

Module derived_snapshot_archive 

Source
Expand description

Bounded archive adapter for portable derived graph snapshots.

Structsยง

SnapshotArchiveManifest ๐Ÿ”’
Strict archive manifest bound to one payload.
SnapshotArchiveParts ๐Ÿ”’
Bounded entries read from one validated archive shape.
SnapshotArchiveSignature ๐Ÿ”’
Self-contained Ed25519 signature record.
SnapshotExportReport ๐Ÿ”’
Successful portable archive export.
SnapshotImportReport ๐Ÿ”’
Successful portable archive import.

Enumsยง

SnapshotSignatureState ๐Ÿ”’
Honest signature handling state for the selected build and request.

Constantsยง

ARCHIVE_FORMAT_VERSION ๐Ÿ”’
Stable archive container format version.
ARCHIVE_ROOT ๐Ÿ”’
Required top-level archive directory.
MANIFEST_PATH ๐Ÿ”’
Required manifest entry path.
MAX_ARCHIVE_ENTRIES ๐Ÿ”’
Maximum number of allowed archive entries.
MAX_COMPRESSED_ARCHIVE_BYTES ๐Ÿ”’
Maximum accepted compressed archive size.
MAX_MANIFEST_BYTES ๐Ÿ”’
Maximum expanded manifest size.
MAX_SIGNATURE_BYTES ๐Ÿ”’
Maximum expanded signature size.
MAX_ZSTD_WINDOW_LOG ๐Ÿ”’
Maximum accepted Zstandard decoder window log.
PAYLOAD_PATH ๐Ÿ”’
Required portable graph entry path.
SIGNATURE_DOMAIN ๐Ÿ”’
Domain separator for archive signatures.
SIGNATURE_PATH ๐Ÿ”’
Optional signature entry path.

Functionsยง

append_entry ๐Ÿ”’
Append one deterministic regular-file archive entry.
decode_hex_array ๐Ÿ”’
Decode one fixed-size hexadecimal key or signature.
decode_nibble ๐Ÿ”’
Decode one hexadecimal nibble.
encode_hex ๐Ÿ”’
Encode bytes as lowercase hexadecimal.
export_snapshot_archive ๐Ÿ”’
Export one deterministic tar.zst archive without overwriting an existing path.
import_snapshot_archive ๐Ÿ”’
Validate one archive completely, then publish through the database boundary.
invalid ๐Ÿ”’
Return a typed invalid-input error.
read_archive ๐Ÿ”’
Read an archive without extracting entries to disk.
read_hex_file ๐Ÿ”’
Read one bounded fixed-size hexadecimal key file.
require_digest ๐Ÿ”’
Validate a lowercase BLAKE3 hexadecimal digest.
require_private_signing_key_permissions ๐Ÿ”’
Require a signing key inaccessible to group and other Unix users.
sign_archive ๐Ÿ”’
Sign the framed manifest and payload digest.
signature_digest ๐Ÿ”’
Compute the domain-separated digest signed by Ed25519.
usize_to_u64 ๐Ÿ”’
Convert an in-memory length to the archive count type.
verify_archive_signature ๐Ÿ”’
Verify an optional signature and explicit trust policy.