Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
secp256k1/ecdsa: Add test for order wraparound.
Since it is impossible to calculate the necessary values without breaking the ECDLP, this adds an invented signature to exercise the branch of the RecoverCompact function that involves the case when the original X coordinate of the random point is greater than the group order and therefore has the overflow bit set. The result is raising the test coverage from 99.2% to 99.6%.
- Loading branch information