real-or-random
commented at 10:43 AM on January 7, 2026:
contributor
I don't think the current code is incorrect, but using size_t improves readability because the type makes it clear that we're dealing with array indices.
Also, making the result of the ECMULT_TABLE_SIZE macro (hopefully) a size_t fixes a compiler warning on MSVC, see #1791.
real-or-random added the label tweak/refactor on Jan 7, 2026
ecmult: Use size_t for array indices into tablesbb1d199de5
ecmult: Use size_t for array indices in _odd_multiplies_table47eb70959a
real-or-random force-pushed on Jan 7, 2026
hebasto
commented at 11:58 AM on January 7, 2026:
member
Concept ACK.
I came to the same idea while working on #1791, but left it for later :)
hebasto approved
hebasto
commented at 12:48 PM on January 7, 2026:
member
ACK9e7aede41eaf5dd6f4da7e233bc90982476f325e, I have reviewed the code and it looks OK.
I think there's no perfect solution here, but fixing this one will open up the entire business of cleaning up types in secp256k1_ecmult_wnaf (see #1795), and I think this should be a separate PR.
The same is true for the stuff in ecmult_gen; I think this could be a separate PR.
hebasto approved
hebasto
commented at 2:48 PM on January 7, 2026:
member
re-ACK47eb70959a91bbfa10dc209e8ccbe7350f5b9b04.
jonasnick approved
jonasnick
commented at 8:31 PM on January 11, 2026:
contributor
ACK47eb70959a91bbfa10dc209e8ccbe7350f5b9b04
real-or-random
commented at 3:26 PM on January 23, 2026:
contributor
This is a metadata mirror of the GitHub repository
bitcoin-core/secp256k1.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-19 06:52 UTC