Files
secp256k1-zkp/src
Lőrinc 994b35010d field: correct fe_equal's b magnitude bound
`secp256k1_fe_equal` negates `a` before adding `b`.
That gives the temporary value magnitude 2, and the following field addition requires the input magnitudes to sum to at most 32.
So the largest `b` magnitude the implementation can accept is 30, not 31.

Lower the documented and checked bound for `b` to 30.
Adjust the focused test to use random field elements with randomized magnitudes within the accepted `a <= 1` and `b <= 30` bounds.

Co-authored-by: Sebastian Falbesoner <sebastian.falbesoner@gmail.com>
Co-authored-by: Tim Ruffing <me@real-or-random.org>
2026-06-25 09:23:38 -07:00
..
2026-02-02 13:01:18 +00:00
2021-08-20 11:11:26 -04:00
2024-04-25 20:23:31 +00:00
2024-04-25 20:23:31 +00:00
2022-11-07 16:37:24 -05:00
2022-11-07 16:37:24 -05:00
2024-09-25 11:05:23 -04:00
2023-02-28 15:54:00 -05:00
2024-09-25 11:05:23 -04:00
2023-02-28 15:54:00 -05:00
2020-12-18 00:24:22 +02:00
2020-12-18 00:24:22 +02:00
2025-09-08 12:26:04 -04:00
2024-10-21 09:18:44 +00:00
2026-03-02 15:06:39 +01:00
2026-06-15 23:56:19 +02:00