Commit 5a2c23f
committed
clean up in-comment Sage code (refer to secp256k1_params.sage, update to Python3)
Some of the C source files contain contain in-comment Sage code
calculating secp256k1 parameters that are already defined in the file
secp256k1_params.sage. Replace that by a corresponding load instruction
and access the necessary variables. In ecdsa_impl.h, update the comment
to use a one-line shell command calling sage to get the values.
The remaining code (test `test_add_neg_y_diff_x` in tests.c) is updated
to work with a current version based on Python3 (Sage 9.0+, see
https://wiki.sagemath.org/Python3-Switch).
The latter can be seen as a small follow-up to PR #849 (commit
13c88ef).1 parent 60556c9 commit 5a2c23f
2 files changed
+11
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 19 | + | |
| 20 | + | |
30 | 21 | | |
31 | 22 | | |
32 | 23 | | |
| |||
35 | 26 | | |
36 | 27 | | |
37 | 28 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 29 | + | |
| 30 | + | |
44 | 31 | | |
45 | 32 | | |
46 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4009 | 4009 | | |
4010 | 4010 | | |
4011 | 4011 | | |
4012 | | - | |
4013 | | - | |
4014 | | - | |
4015 | | - | |
4016 | | - | |
4017 | 4012 | | |
4018 | | - | |
4019 | | - | |
| 4013 | + | |
| 4014 | + | |
| 4015 | + | |
| 4016 | + | |
4020 | 4017 | | |
4021 | 4018 | | |
4022 | 4019 | | |
4023 | 4020 | | |
4024 | 4021 | | |
4025 | | - | |
4026 | | - | |
4027 | | - | |
| 4022 | + | |
| 4023 | + | |
| 4024 | + | |
4028 | 4025 | | |
4029 | 4026 | | |
4030 | 4027 | | |
| |||
0 commit comments