Commit 4494a36
committed
Merge bitcoin-core/secp256k1#1357: tests: refactor: take use of
7d8d5c8 tests: refactor: take use of `secp256k1_ge_x_on_curve_var` (Sebastian Falbesoner)
Pull request description:
The recently merged ellswift PR (bitcoin#1129) introduced a helper `secp256k1_ge_x_on_curve_var` to check if a given X coordinate is on the curve (i.e. the expression x^3 + 7 is square, see commit 79e5b2a). This can be used for code deduplication in the `ecmult_const_mult_xonly` test.
(Found this instance via `$ git grep add_int.*SECP256K1_B`, I think it's the only one where the helper can be used.)
ACKs for top commit:
sipa:
utACK 7d8d5c8
real-or-random:
utACK 7d8d5c8
Tree-SHA512: aebff9b5ef2f6f6664ce89e4e1272cb55b6aac81cfb379652c4b7ab30dd1d7fd82a2c3b47c7b7429755ba28f011a3a9e2e6d3aa5c77d3b105d159104c24b89f3secp256k1_ge_x_on_curve_var
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4611 | 4611 | | |
4612 | 4612 | | |
4613 | 4613 | | |
4614 | | - | |
| 4614 | + | |
4615 | 4615 | | |
4616 | 4616 | | |
4617 | 4617 | | |
4618 | 4618 | | |
4619 | 4619 | | |
4620 | 4620 | | |
4621 | | - | |
4622 | | - | |
4623 | | - | |
4624 | | - | |
| 4621 | + | |
4625 | 4622 | | |
4626 | 4623 | | |
4627 | 4624 | | |
| |||
0 commit comments