Skip to content

Commit

Permalink
fix type error (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlomazzaferro authored Aug 12, 2024
1 parent a09e816 commit 2f82a4b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions iris-mpc-common/src/bin/key_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ struct KeyManagerCli {
#[command(subcommand)]
command: Commands,

#[arg(short, long, env, value_parser = clap::builder::PossibleValuesParser::new(&["0", "1", "2"]))]
node_id: u16,
#[arg(
short, long, env, value_parser = clap::builder::PossibleValuesParser::new(& ["0", "1", "2"])
)]
node_id: String,

#[arg(short, long, env, default_value = "stage")]
env: String,
Expand All @@ -47,7 +49,9 @@ enum Commands {
/// or in s3)
Validate {
// AWSCURRENT or AWSPREVIOUS or a specific version
#[arg(short, long, env, value_parser = clap::builder::PossibleValuesParser::new(&["AWSCURRENT", "AWSPREVIOUS"]))]
#[arg(
short, long, env, value_parser = clap::builder::PossibleValuesParser::new(& ["AWSCURRENT", "AWSPREVIOUS"])
)]
version_stage: String,

#[arg(short, long, env)]
Expand Down Expand Up @@ -129,7 +133,7 @@ async fn validate_keys(
let user_privkey = STANDARD.decode(data.as_bytes()).unwrap();
let decoded_priv_key = SecretKey::from_slice(&user_privkey).unwrap();

assert!(decoded_priv_key.public_key() == pub_key);
assert_eq!(decoded_priv_key.public_key(), pub_key);
Ok(())
}

Expand Down

0 comments on commit 2f82a4b

Please sign in to comment.