Skip to main content

KeyVersion

Type Alias KeyVersion 

Source
pub type KeyVersion = u32;
Expand description

Monotonic version number for a LogEncryptionKey.

Encoded into crate::encryption::EncryptedPayload::key_version so that decryption can find the right historical key. The first key has version 1; version 0 is reserved as a “legacy / unset” sentinel for any pre-rotation payload.