diff --git a/ed25519/src/lib.rs b/ed25519/src/lib.rs index 9f4bedbc..2e021245 100644 --- a/ed25519/src/lib.rs +++ b/ed25519/src/lib.rs @@ -397,9 +397,7 @@ impl TryFrom<&[u8]> for Signature { type Error = Error; fn try_from(bytes: &[u8]) -> signature::Result { - SignatureBytes::try_from(bytes) - .map(Into::into) - .map_err(|_| Error::new()) + Self::from_slice(bytes) } }