Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Oct 25, 2024
1 parent 312e984 commit b6e22c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iroh-base/src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ impl SecretKey {
/// Convert to a hex string limited to the first 10 bytes for a friendly string
/// representation of the key.
pub fn fmt_short(&self) -> String {
hex::encode(self.as_bytes()).chars().take(10).collect()
hex::encode(self.secret.as_bytes()).chars().take(10).collect()
}

fn secret_crypto_box(&self) -> &crypto_box::SecretKey {
Expand Down

0 comments on commit b6e22c9

Please sign in to comment.