chore: Returns Result public key in CliOptions::pubkey

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-05-06 11:22:46 +00:00
parent 6fc59bfe59
commit 9b4dfb9374
2 changed files with 3 additions and 3 deletions

View File

@@ -115,9 +115,9 @@ impl CommandRunner for Commands {
impl CliOptions {
/// Gets the public key of the user.
pub async fn pubkey(&self) -> PublicKey {
pub async fn pubkey(&self) -> N34Result<PublicKey> {
if let Some(sk) = &self.secret_key {
return Keys::new(sk.clone()).public_key();
return Ok(Keys::new(sk.clone()).public_key());
}
unreachable!("There is no other method until now")
}