Skip to main content

master_key

Function master_key 

Source
pub fn master_key(
    config_dir: &Path,
    keychain_required: bool,
) -> Result<(Key, AtRest), CloudError>
Expand description

The machine’s replica master key mk and where it is kept. The keychain is used unless LEAN_CTX_REPLICA_KEY_FILE is set, the platform has none, or keychain_required is false and the keychain fails; keychain_required (workspace policy require_keychain_at_rest) refuses the file fallback.