pub fn load_keymap(
path: &Path,
password: SecretString,
) -> Result<KeyMap, EncFileError>Expand description
Load an encrypted key map from disk using a password.
The key map is expected to be an encrypted CBOR-encoded HashMap
created by save_keymap.
§Arguments
path- Path to the encrypted key map filepassword- Password used to encrypt the key map
§Returns
The decrypted key map containing string names mapped to key data.