group: Avoid using infinity field directly in other modules #1764

pull real-or-random wants to merge 1 commits into bitcoin-core:master from real-or-random:202511-infinity-private changing 4 files +10 −16
  1. real-or-random commented at 7:54 pm on October 28, 2025: contributor
    Minor refactoring to make the abstraction cleaner
  2. group: Avoid using infinity field directly in other modules 46c7c8f6a2
  3. real-or-random added the label tweak/refactor on Oct 28, 2025
  4. hebasto commented at 2:17 pm on November 3, 2025: member

    Concept ACK.

    Some other places still remain:

    0$ git grep -e "\.infinity" -- src ':(exclude)src/group_impl.h'
    1src/ecmult_const_impl.h:    p.infinity = 0;
    2src/tests.c:    SECP256K1_CHECKMEM_CHECK(&ge.infinity, sizeof(ge.infinity));
    3src/tests_exhaustive.c:            zless_gej.infinity = groupj[j].infinity;
    4src/tests_exhaustive.c:                CHECK(group[i].infinity == 0);
    5src/tests_exhaustive.c:                CHECK(generated.infinity == 0);
    

github-metadata-mirror

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: 2025-11-04 03:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me