Merge bitcoin-core/secp256k1#1764: group: Avoid using infinity field directly in other modules
2f73e5281dgroup: Avoid using infinity field directly in other modules (Tim Ruffing) Pull request description: Minor refactoring to make the abstraction cleaner ACKs for top commit: hebasto: ACK2f73e5281d, I have reviewed the code and it looks OK. theStack: ACK2f73e5281dTree-SHA512: eae5ad1ce81f491adb48ab1cbf04211f8d43e41255abcacc958fa3dcb1de5021707d56ed1b009a6f3f6c45cd8f20c1f2677891690a3c0a467fc7e064af2512a8
This commit is contained in:
@@ -4152,8 +4152,8 @@ static void test_group_decompress(const secp256k1_fe* x) {
|
||||
secp256k1_fe_normalize_var(&ge_even.y);
|
||||
|
||||
/* No infinity allowed. */
|
||||
CHECK(!ge_even.infinity);
|
||||
CHECK(!ge_odd.infinity);
|
||||
CHECK(!secp256k1_ge_is_infinity(&ge_even));
|
||||
CHECK(!secp256k1_ge_is_infinity(&ge_odd));
|
||||
|
||||
/* Check that the x coordinates check out. */
|
||||
CHECK(secp256k1_fe_equal(&ge_even.x, x));
|
||||
|
||||
Reference in New Issue
Block a user