Skip to content

Commit

Permalink
some missing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
conradoplg committed Sep 27, 2024
1 parent 3cea6b6 commit 64427df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frost-client/src/ciphersuite_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ where
pub(crate) fn ciphersuite_helper(
ciphersuite_id: &str,
) -> Result<Box<dyn CiphersuiteHelper>, Box<dyn Error>> {
if ciphersuite_id == "ed25519" {
if ciphersuite_id == Ed25519Sha512::ID {
return Ok(Box::new(CiphersuiteHelperImpl::<Ed25519Sha512>::default()));
}
Err(eyre!("invalid ciphersuite ID").into())
Expand Down
4 changes: 1 addition & 3 deletions frost-client/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ use core::str;
use std::{
collections::BTreeMap,
error::Error,
fs::File,
os::unix::fs::PermissionsExt,
path::{Path, PathBuf},
str::FromStr,
};
Expand Down Expand Up @@ -110,7 +108,7 @@ impl Group {
);
for participant in self.participant.values() {
let contact = config.contact_by_pubkey(&participant.pubkey)?;
s += &format!("\tName: {}", contact.name);
s += &format!("\t{}\n", contact.name);
}
Ok(s)
}
Expand Down
1 change: 1 addition & 0 deletions frost-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
Command::Import { .. } => contact::import(&args.command),
Command::Contacts { .. } => contact::list(&args.command),
Command::Groups { .. } => group::list(&args.command),
Command::TrustedDealer { .. } => trusted_dealer::trusted_dealer(&args.command),
}?;

Ok(())
Expand Down

0 comments on commit 64427df

Please sign in to comment.