pub async fn seal_op_log_head(
state_dir: &Path,
head_signing_key: &SigningKey,
es256_store: &Es256SigningKeyStore,
) -> Result<()>Expand description
Write the sealed op-log head after a promotion (or at boot). The public
operation remains async for its rotator call sites, while the ES256 store
snapshot uses its synchronous parking_lot read guard. This is the C2
(#1168) seam: rename-atomic at the file level; the full crash-atomic
rotation ordering is C2’s guarantee (see module docs).
Prior state is carried forward only from a signature-verified prior head
(F5): an unverified/tampered prior does not inject seq/prev.