Skip to content

Commit

Permalink
Use ed25519_compact::Signature::try_from for all implemented traits
Browse files Browse the repository at this point in the history
  • Loading branch information
kurotych committed Feb 5, 2024
1 parent 0bb742a commit 0be3c41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ed25519/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ impl TryFrom<&[u8]> for Signature {
type Error = Error;

fn try_from(input: &[u8]) -> Result<Self> {
Signature::from_bytes(input)
let signature = ed25519_compact::Signature::try_from(input)?;
Ok(Signature(signature))
}
}

Expand Down

0 comments on commit 0be3c41

Please sign in to comment.