Skip to content

Commit

Permalink
frost-client: add warning about unencrypted contents
Browse files Browse the repository at this point in the history
  • Loading branch information
conradoplg committed Feb 21, 2025
1 parent df39100 commit a445e2d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions frost-client/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@ pub(crate) struct Args {

#[derive(Subcommand, Clone)]
pub(crate) enum Command {
/// Initializes the user, generating a communication key pair and saving
/// to the config file.
/// Initializes the user, generating a communication key pair and saving to
/// the config file.
///
/// WARNING: the config file will contain your private FROST shares in
/// clear. Keep it safe and never share it with anyone. Future versions of
/// this tool might encrypt the config file.
Init {
/// The path to the config file to manage. If not specified, it uses
/// $HOME/.local/frost/credentials.toml
Expand Down
6 changes: 5 additions & 1 deletion frost-client/src/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ pub(crate) async fn init(args: &Command) -> Result<(), Box<dyn Error>> {
config.path().expect("should not be None").display()
);
config.write()?;
eprintln!("Done.");
eprintln!(
"Done.\nWARNING: the config file will contain your private FROST shares in clear. \
Keep it safe and never share it with anyone. Future versions of this tool might encrypt \
the config file."
);

Ok(())
}

0 comments on commit a445e2d

Please sign in to comment.