Skip to main content

review_decoy_activity

Function review_decoy_activity 

Source
pub fn review_decoy_activity(
    root: impl AsRef<Path>,
    real_pin: &str,
) -> Result<DecoyActivityReport, String>
Expand description

Review decoy activity from the real lane (ADR §3.1 / §10). Opens the real lane, unwraps the audit secret, decrypts every sealed decoy-session record, verifies chain integrity, and checks each previously-witnessed prefix against its head anchor (detecting forensic truncation/replace). Then advances the anchors for clean branches and persists them inside the real lane’s encrypted records. Requires the real PIN; the decoy PIN is rejected.