Skip to content

fix: correct misleading ORDER_HALF comment in bip-0374#2059

Open
zeroprooff wants to merge 1 commit intobitcoin:masterfrom
zeroprooff:fix-secp256k1-order-half-comment
Open

fix: correct misleading ORDER_HALF comment in bip-0374#2059
zeroprooff wants to merge 1 commit intobitcoin:masterfrom
zeroprooff:fix-secp256k1-order-half-comment

Conversation

@zeroprooff
Copy link
Contributor

The comment for ORDER_HALF incorrectly stated it represents "Number of valid distinct x coordinates on the curve". This is wrong - ORDER_HALF is simply half the group order, commonly used for ECDSA low-S signature normalization. The number of valid x coordinates on secp256k1 is approximately (p-1)/2 where p is the field size, which is a completely different value.

Also clarified the ORDER comment from "plus 1 for infinity" to "including infinity" for better accuracy.

@murchandamus murchandamus added Typo-to-be-collected Pending acceptance This BIP modification requires sign-off by the champion of the BIP being modified labels Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Pending acceptance This BIP modification requires sign-off by the champion of the BIP being modified Typo-to-be-collected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants