Skip to main content

add_note

Function add_note 

Source
pub fn add_note(
    root: impl AsRef<Path>,
    pin: &str,
    body: &str,
    now_unix: u32,
) -> Result<SanctuaryLane, String>
Expand description

Append a note to the lane the PIN opens (real PIN → real lane; duress PIN → decoy only).

A decoy write also leaves a blind, sealed audit record on [DEFAULT_DECOY_BRANCH] that the coercer cannot read; the real lane reviews it via review_decoy_activity. For git-like per-session branches (one branch per duress unlock), use add_note_in_session.