Skip to main content

unlock_with_recovery

Function unlock_with_recovery 

Source
pub fn unlock_with_recovery(
    root: impl AsRef<Path>,
    pin: &str,
    recovery_code_hex: &str,
) -> Result<SanctuaryLane, String>
Expand description

Recover access to a keychain-wrapped vault whose keychain entry is missing (new device, OS reinstall) by supplying the hex recovery code from setup_wrapped. On success the pepper is re-stored into this device’s keychain so subsequent unlocks are seamless again.