Skip to content

Commit

Permalink
Add comment about signature not verifying R and s components
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Jan 21, 2023
1 parent 1e2aaeb commit a5512a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ed25519/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,13 @@ pub type ComponentBytes = [u8; COMPONENT_SIZE];
pub type SignatureBytes = [u8; Signature::BYTE_SIZE];

/// Ed25519 signature.
///
/// This type represents a container for the byte serialization of an Ed25519
/// signature, and does not necessarily represent well-formed elements of the
/// respective elliptic curve fields.
///
/// Signature verification libraries are expected to reject invalid field
/// elements at the time a signature is verified.
#[derive(Copy, Clone, Eq, PartialEq)]
#[repr(C)]
pub struct Signature {
Expand Down

0 comments on commit a5512a0

Please sign in to comment.