pub const PCS_ENGINE: &str = "pcs_engine";Expand description
The VTA’s hidden-vetting PCS engine state (vta/pcs/*): one vetter
engine per (context, community), keyed vetter:<digest(context, community)>,
one applicant engine per application, keyed app:<applicationId>, and the
voter and trustee engines (voter:<digest>, trustee:<digest>). The keys
are digests, so finding a context’s records means reading each record’s
contextId; the wrapped state sits beside each under secret:<key>.
Never a usk: each member key is re-derived from its context’s base on
every use (VTI-KEY-030). The rest of an engine — class credentials, unspent
tokens, draws and enrolments in flight, attestations held — is secret, and
is stored wrapped under the seed-derived KEK the way imported keys are.
In BACKED_UP: an applicant’s attestations cannot be replaced without
its vetters sitting again, and the KEK is a function of the seed the
restore brings back.