Skip to content

Commit

Permalink
secp256k1: Correct prime minus order func comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
davecgh committed Sep 5, 2024
1 parent 02b1cff commit 1642abe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dcrec/secp256k1/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -1625,8 +1625,9 @@ func (f *FieldVal) Inverse() *FieldVal {
return f.Mul(&a) // f = a^(2^256 - 4294968275) = a^(p-2)
}

// IsGtOrEqPrimeMinusOrder returns whether or not the field value exceeds the
// group order divided by 2 in constant time.
// IsGtOrEqPrimeMinusOrder returns whether or not the field value is greater
// than or equal to the field prime minus the secp256k1 group order in constant
// time.
//
// Preconditions:
// - The field value MUST be normalized
Expand Down

0 comments on commit 1642abe

Please sign in to comment.