This Pull Request improves the tests for secp256k1_scalar_check_overflow as requested in #1812.
Changes:
- Removed the redundant “all ones” check from
run_scalar_tests. - Added a new dedicated test function
test_scalar_check_overflow. - Added static checks for edge cases:
0,N-1,N,N+1, andMAX. - Added random input tests that verify
check_overflowagainst a manual byte comparison.
Fixes #1812.