Skip to main content

pin_first

Function pin_first 

Source
fn pin_first(
    state: &AppState,
    agent: &str,
    observed_b64: &str,
    cert: &WanKeyRecord,
    path: Path,
    by: &str,
) -> Result<Path, String>
Expand description

First contact: pinned only now that a trusted install vouched, and bound to that install. get_or_set keeps whichever key got there first, so a concurrent first contact cannot be overwritten from an older check.