[REFACTOR] Ring keys are *always* secret
There's ultimately no reason why RingKey::write_file_from_str should
even include this.
@@ -8,9 +8,8 @@ use crate::error::Result;
pub fn start(ui: &mut UI, content: &str, cache: &Path) -> Result<()> {
ui.begin("Importing ring key from standard input")?;
- let (pair, pair_type) = RingKey::write_file_from_str(content, cache)?;
- ui.end(format!("Imported {} ring key {}.",
- &pair_type,
- &pair.name_with_rev()))?;
+ let (pair, _) = RingKey::write_file_from_str(content, cache)?;
+
+ ui.end(format!("Imported secret ring key {}.", &pair.name_with_rev()))?;
Ok(())
}
