Skip to main content

Module sidecar_v1

Module sidecar_v1 

Source
Expand description

The CBOR sidecar schema v1 — the canonical, plaintext-local-only, signed metadata record for an asset (SSoT: Metadata — Sidecar Schema v1).

It is self-describing: sidecar_schema is CBOR field 0 (an integer map key, which sorts before every text key in canonical order), so a reader detects a schema it does not implement before parsing the rest. The signature covers every byte including the preserved _unknown map, so stripping unknown fields invalidates it.

Structs§

AiTag
An AI-suggested tag (kept in a structurally separate OR-set from user tags).
CameraId
Camera identifier (fingerprinting surface — stripped on export by default).
Dimensions
Pixel dimensions.
Gps
Geolocation, stored verbatim in the datum the source supplied (SSoT: Metadata — Geolocation). Never converted at rest; datum-tagged by datum.
Lqip
Low-quality image placeholder (image-derived; lives in the encrypted sidecar).
SidecarV1
The signed CBOR sidecar v1.
StackMembership
Stack grouping for this asset (metadata-only; never touches asset bytes).

Enums§

CullFlag
Trinary culling flag (owner: Asset Organization — Culling). Neutral is the never-flagged state and the wire-absent default.
GpsSource
The source of a GPS fix (closed enum per protocol version).
StackRole
Role of an asset within a stack.

Constants§

SIDECAR_SCHEMA_V1
The current sidecar schema version.