Skip to content

Commit ec54ef8

Browse files
authored
fix: correct misleading ORDER_HALF comment in bip-0374
1 parent 1e663c2 commit ec54ef8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bip-0374/secp256k1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ class GE:
164164
* infinity: True
165165
"""
166166

167-
# Order of the group (number of points on the curve, plus 1 for infinity)
167+
# Order of the group (number of points on the curve, including infinity)
168168
ORDER = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141
169169

170-
# Number of valid distinct x coordinates on the curve.
170+
# Half the order, used for ECDSA low-S normalization
171171
ORDER_HALF = ORDER // 2
172172

173173
def __init__(self, x=None, y=None):

0 commit comments

Comments
 (0)