diff --git a/iroh-base/src/key.rs b/iroh-base/src/key.rs index 1688f88091..7d62a146bf 100644 --- a/iroh-base/src/key.rs +++ b/iroh-base/src/key.rs @@ -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 {