We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b7b43b commit dc4854fCopy full SHA for dc4854f
crates/keystore/src/lib.rs
@@ -191,7 +191,7 @@ impl PrivateKey {
191
/// # Errors
192
///
193
/// Errors if the DER representation of the public key can’t be derived.
194
- pub fn fingerprint(&self) -> Result<[u8; 32], pkcs8::Error> {
+ pub fn fingerprint(&self) -> pkcs8::spki::Result<[u8; 32]> {
195
let bytes = match self {
196
PrivateKey::Rsa(key) => key.to_public_key().to_public_key_der()?,
197
PrivateKey::EcP256(key) => key.public_key().to_public_key_der()?,
0 commit comments