AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 15 Bitcoin

Merge bitcoin-core/secp256k1#1946: doc: clean up lingering ECMULT_WINDOW_SIZE comment

Public commit record

What the developer wrote

Authored by merge-script

96/100 · Strong
Merge bitcoin-core/secp256k1#1946: doc: clean up lingering ECMULT_WINDOW_SIZE comment

685247a3817cdb932fa21c785c64a60bc0e9f135 doc: correct ecmult table storage size (Yudistira Putra)
cc0e03ffd4ddfce3663dc807a10cc4e3d0132d79 doc: clean up lingering ECMULT_WINDOW_SIZE comment (Yudistira Putra)

Pull request description:

Move the `ECMULT_WINDOW_SIZE` comment from under `WINDOW_A` in `src/ecmult_impl.h` to the window-size setting in `src/ecmult.h`, and replace the stale `WINDOW_G` references.

The second commit corrects the table-size formula to `ECMULT_TABLE_SIZE(ECMULT_WINDOW_SIZE) * 64` bytes. A comment above it points to the existing `STATIC_ASSERT` in `group_impl.h` that guarantees the storage size. The macro can only be used inside functions.

Tested on Windows x64 with GCC 16.2.0, C90, `-Werror -pedantic-errors`, and all modules enabled. All 237 CTest tests passed, including exhaustive tests and examples.

Closes #1766.

ACKs for top commit:
real-or-random:
ACK 685247a3817cdb932fa21c785c64a60bc0e9f135
theStack:
ACK 685247a3817cdb932fa21c785c64a60bc0e9f135

Tree-SHA512: e54dc1cd9f27da491d3ab60a1b1265f4e30397528e7146c04e608616badc6ad3c3b88f1e67f37d42d124feea8f36a3ed8bcf9f199d0289b5dd75bbbcec42eccf
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference✓ Names security-relevant behavior explicitly
The short version

What changed, and why it matters

This is a documentation-only cleanup. It moves a comment about the ECMULT_WINDOW_SIZE setting to a better location and fixes an outdated formula in the comment. No code behavior changes.

Recommended action

No security action needed. This is a non-functional documentation cleanup.

Security signals we found

No strong security signals were identified.

Risk score

Why this scored 15/100

Our methodology →
Potential impact 0/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 0/15
Confidence 10/10
Evidence quality 5/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.