pub struct ThresholdSeal {
pub wrapped_dek: Vec<u8>,
pub oprf_id: String,
pub epoch: u32,
}Expand description
The threshold seal that gates a secret’s VALUE behind a t-of-n OPRF quorum.
The value is encrypted under a fresh random per-secret data-encryption key
(DEK); the DEK is itself encrypted (“wrapped”) under the OPRF-quorum-derived
key ([crate::oprf::derive_luks_key]). Recovering the plaintext therefore
requires re-deriving the OPRF key, which needs a t-of-n quorum of devices –
a single device that never assembles the quorum cannot decrypt the value even
with the vault unlocked. Only the value is gated; a secret’s name and kind
stay readable with the vault data key so the store remains browsable.
wrapped_dek is ciphertext, so the seal is not itself secret, but it is
stored encrypted under the vault data key at rest like every other record.
Fields§
§wrapped_dek: Vec<u8>The per-secret DEK, encrypted under the OPRF-quorum-derived key
(EncryptedData::to_bytes output).
oprf_id: StringOPRF domain-separation label fed to derive_luks_key (the secret id, hex),
so the quorum re-derives the same key for this secret.
epoch: u32OPRF epoch: the rotation counter for the derived key, bumped to re-seal a secret under a fresh key without changing the OPRF root.