Skip to content

Commit

Permalink
Tightened wording
Browse files Browse the repository at this point in the history
  • Loading branch information
rozbb committed May 10, 2024
1 parent 78dfb48 commit cd3ddd8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ed25519-dalek/src/verifying.rs
Expand Up @@ -148,8 +148,9 @@ impl VerifyingKey {
///
/// # Returns
///
/// A `Result` whose okay value is an EdDSA `VerifyingKey` or a decompression error if the
/// provided bytes do not represent the \\(y\\)-coordinate of a curve point.
/// On success, returns an EdDSA `VerifyingKey`. Returns a decompression error if the provided
/// bytes are not a valid verifying key, i.e., do not represent the \\(y\\)-coordinate of a
/// curve point.
#[inline]
pub fn from_bytes(bytes: &[u8; PUBLIC_KEY_LENGTH]) -> Result<VerifyingKey, SignatureError> {
let compressed = CompressedEdwardsY(*bytes);
Expand Down

0 comments on commit cd3ddd8

Please sign in to comment.