Skip to content

Commit

Permalink
fix: auditor key arg to match docs
Browse files Browse the repository at this point in the history
  • Loading branch information
grumbach committed May 21, 2024
1 parent f219566 commit d542383
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sn_auditor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ struct Opt {
#[clap(short, long, value_name = "discord_names_file")]
beta_participants: Option<PathBuf>,

/// Hex string of the Foundation SK used to decrypt discord usernames
/// found in the DAG for the beta program
#[clap(name = "sk")]
sk_str: Option<String>,
/// Secret encryption key of the beta rewards to decypher
/// discord usernames of the beta participants
#[clap(short = 'k', long, value_name = "hex_secret_key")]
beta_encryption_key: Option<String>,
}

#[tokio::main]
Expand All @@ -95,7 +95,7 @@ async fn main() -> Result<()> {
Vec::new()
};

let maybe_sk = if let Some(sk_str) = opt.sk_str {
let maybe_sk = if let Some(sk_str) = opt.beta_encryption_key {
match SecretKey::from_hex(&sk_str) {
Ok(sk) => Some(sk),
Err(err) => panic!("Cann't parse Foundation SK from input string: {sk_str}: {err:?}",),
Expand Down

0 comments on commit d542383

Please sign in to comment.