pub struct PackagePayload {
pub schema_version: u32,
pub environment: String,
pub created: String,
pub expires_at: u64,
pub token_commitment: String,
pub entries: Vec<SecretRecord>,
}Expand description
The plaintext that gets sealed into a Package.
Debug is safe: the only secret-bearing material lives inside the entries
(a literal’s value, a keypair’s private, a totp’s seed), all
SecretValues whose Debug is redacted (I12). The token_commitment is a
BLAKE3 hash of the token secret — not the secret itself.
Fields§
§schema_version: u32Schema version of this payload.
environment: StringThe environment scope the package was cut for (e.g. dev). All entries
share it; never prod (I4a).
created: StringRFC-3339 creation timestamp (provenance metadata, not a secret).
expires_at: u64Expiry as Unix seconds. Mirrored in the cleartext Package header so a
reader can reject an expired package before attempting decryption.
token_commitment: StringBLAKE3(token_secret) — the commitment an unattended open checks the
presented token secret against (factor 2). Set by seal.
entries: Vec<SecretRecord>The packaged records, each in its stored modality. Literals carry their value; references carry only the pointer URI (I8); keypair/totp carry their sealed private half / seed.