Skip to content

Commit

Permalink
fix IsHigh trait comment (#1726)
Browse files Browse the repository at this point in the history
The comment was saying that function informs if the scalar is **"greater
or equal to"** whereas the implementation informs if the scalar is
**"strictly greater than"**
  • Loading branch information
najeal authored Jan 9, 2025
1 parent 3597746 commit 2b9e5f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elliptic-curve/src/scalar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ pub trait FromUintUnchecked {
/// - For scalars 0 through n / 2: `Choice::from(0)`
/// - For scalars (n / 2) + 1 through n - 1: `Choice::from(1)`
pub trait IsHigh {
/// Is this scalar greater than or equal to n / 2?
/// Is this scalar greater than n / 2?
fn is_high(&self) -> Choice;
}

0 comments on commit 2b9e5f5

Please sign in to comment.