capsule_core/crypto/provenance/mod.rs
1//! Signed manifests and append-only provenance chains (SSoT: [Cryptography — Provenance]).
2//!
3//! - `action` — the closed lifecycle-action and derivative-role enums.
4//! - `manifest` — [`AssetManifest`] / [`DerivativeManifest`] with their canonical signing
5//! bytes and two hybrid signatures.
6//! - `record` — [`ProvenanceRecord`] and the hash-chained [`ProvenanceChain`].
7//!
8//! Verification of all of this flows through the single [`verify_asset`] chokepoint.
9//!
10//! [`verify_asset`]: crate::crypto::verify_asset::verify_asset
11//! [Cryptography — Provenance]: https://docs/design/cryptography/provenance/
12
13mod action;
14mod manifest;
15mod record;
16
17pub use action::{Action, DerivativeRole};
18pub use manifest::{
19 ASSET_MANIFEST_VERSION, AssetManifest, DERIVATIVE_MANIFEST_VERSION, DerivativeCore,
20 DerivativeManifest, KeyMode, ManifestCore, WrappedFileKey,
21};
22pub use record::{
23 ChainError, PROVENANCE_RECORD_VERSION, ProvenanceChain, ProvenanceRecord, RecordDecodeError,
24};