use crate::handler::error::LibrageError;
use std::path::Path;
pub fn read_identity_file(
path: impl AsRef<Path>,
) -> Result<Vec<Box<dyn age::Identity>>, LibrageError> {
crate::core::utils::read_identities_from_file(path)
}
pub fn read_identity_file_with_passphrase(
path: impl AsRef<Path>,
passphrase: Option<&str>,
) -> Result<Vec<Box<dyn age::Identity>>, LibrageError> {
crate::core::utils::read_identities_from_file_with_passphrase(path, passphrase)
}