pub fn check_key(key: &str) -> Result<()>