From 1642abeedf5544cd6f976413010bac94f14104bc Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 4 Sep 2024 15:40:05 -0500 Subject: [PATCH] secp256k1: Correct prime minus order func comment. --- dcrec/secp256k1/field.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dcrec/secp256k1/field.go b/dcrec/secp256k1/field.go index e3227a6cc..c1c65065e 100644 --- a/dcrec/secp256k1/field.go +++ b/dcrec/secp256k1/field.go @@ -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