Add exhaustive test for ECDH module #1852

pull theStack wants to merge 1 commits into bitcoin-core:master from theStack:add_ecdh_exhaustive_test changing 3 files +64 −0
  1. theStack commented at 4:53 PM on May 2, 2026: contributor

    This PR adds an exhaustive test for the ECDH module, looping over all key combinations and verifying the commutativity property (ECDH(i*G, j) == ECDH(j*G, i)) and checking against a recalculated ECDH result (by manually invoking the default ECDH hash function on the precalculated group element group[i * j]'s coordinates). The existing test coverage is already solid (including Wycheproof test vectors), but I figured it likely wouldn't hurt to add this as well.

  2. Add exhaustive test for ECDH module 6b9e4b88dc
  3. real-or-random added the label assurance on May 2, 2026
  4. real-or-random added the label feature on May 2, 2026
  5. real-or-random approved

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: 2026-05-11 12:15 UTC

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