remove unused SECP256K1_GE_CONST_INFINITY
What changed, and why it matters
This commit simply deletes an unused macro named SECP256K1_GE_CONST_INFINITY from a header file. A macro is a shorthand definition for code, and this one was no longer referenced anywhere in the project. Removing dead code has no functional effect and does not change how the library behaves or how it handles secrets.
No security action needed. This is a routine code-cleanup change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff removes the macro SECP256K1_GE_CONST_INFINITY from src/group.h. The macro defined a compile-time constant for the point at infinity in affine coordinates, but it was not used anywhere in the codebase. The active representation of infinity is handled elsewhere (e.g., secp256k1_ge_set_infinity and the infinity flag in secp256k1_ge). No call sites, logic, or data structures are modified.
Changed components
src/group.hInspect captured patch +0 / −1
### src/group.h
@@ -20,7 +20,6 @@ typedef struct {
} secp256k1_ge;
#define SECP256K1_GE_CONST(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) {SECP256K1_FE_CONST((a),(b),(c),(d),(e),(f),(g),(h)), SECP256K1_FE_CONST((i),(j),(k),(l),(m),(n),(o),(p)), 0}
-#define SECP256K1_GE_CONST_INFINITY {SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, 0), SECP256K1_FE_CONST(0, 0, 0, 0, 0, 0, 0, 0), 1}
/** A group element of the secp256k1 curve, in jacobian coordinates.
* Note: For exhastive test mode, secp256k1 is replaced by a small subgroup of a different curve.Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.