From 3f816ba9c41c2dd18502eb55adb412d05947c533 Mon Sep 17 00:00:00 2001 From: "Kai A. Hiller" Date: Fri, 8 Aug 2025 12:04:56 +0200 Subject: [PATCH] Improve clarity of return type --- crates/keystore/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/keystore/src/lib.rs b/crates/keystore/src/lib.rs index 02ca98d1a..29678a8c3 100644 --- a/crates/keystore/src/lib.rs +++ b/crates/keystore/src/lib.rs @@ -191,7 +191,7 @@ impl PrivateKey { /// # Errors /// /// Errors if the DER representation of the public key can’t be derived. - pub fn fingerprint(&self) -> Result<[u8; 32], pkcs8::Error> { + pub fn fingerprint(&self) -> pkcs8::spki::Result<[u8; 32]> { let bytes = match self { PrivateKey::Rsa(key) => key.to_public_key().to_public_key_der()?, PrivateKey::EcP256(key) => key.public_key().to_public_key_der()?,