async fn import_self_keys(context: &Context, path: &Path) -> Result<()>
Expand description

Imports secret keys from the provided file or directory.

If provided path is a file, ASCII-armored secret key is read from the file and set as the default key.

If provided path is a directory, all files with .asc extension containing secret keys are imported and the last successfully imported which does not contain “legacy” in its filename is set as the default.