You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
314195c Remove unnecessary cast in CKey::SignSchnorr (Pieter Wuille)
a1f76cd Remove --disable-openssl-tests for libsecp256k1 configure (Pieter Wuille)
86dbc4d Squashed 'src/secp256k1/' changes from be8d9c262f..0559fc6e41 (Pieter Wuille)
Pull request description:
The motivation for this bump is getting rid of a cast in `CKey::SignSchnorr`; the `aux_rand` argument isn't modified by the `secp256k1_schnorrsig_sign` function, but was marked as non-`const` anyway. This is fixed now (bitcoin-core/secp256k1#966), and the cast is removed in this PR.
There are a few other relevant changes:
* (bitcoin-core/secp256k1#956): replaces a runtime-computed table with a precomputed one; this adds arouns 1 MiB to the binary size, but is a step towards significantly simplifying the API. If 1 MiB is too much, it can be reduced by 2 or 4 (or more) for a slight verification performance reduction.
* (bitcoin-core/secp256k1#983): removes (test/bench only) OpenSSL support entirely, removing the need to pass `--disable-openssl-tests` (see #23314).
* (bitcoin-core/secp256k1#810): mild performance increase for 64-bit non-x86 platforms.
* (bitcoin-core/secp256k1#1002): Make aux_rnd32==NULL behave identical to 0x0000..00 (which impacts BIP341/BIP342 signing in Bitcoin Core, making it more strictly BIP340 compliant, though not in a manner that affects security).
ACKs for top commit:
fanquake:
ACK 314195c - this includes a nice simplification to the lilbsecp build system (and thus our build system), and fixes issues like #22854. Did a Guix build on x86 (above), as well as a build on arm64 (except for the arm64 host):
Tree-SHA512: 0e048390fc148fbbdf5b98d9cce8c71067564e7d69d97b68347808a9bc45a04f4fc653c392c880d79d5d8b9cf282195520955581ac4f1595f6a948080cf5949d
Copy file name to clipboardExpand all lines: src/secp256k1/.cirrus.yml
+12-14Lines changed: 12 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,9 @@ env:
19
19
RECOVERY: no
20
20
SCHNORRSIG: no
21
21
### test options
22
-
TEST_ITERS:
22
+
SECP256K1_TEST_ITERS:
23
23
BENCH: yes
24
-
BENCH_ITERS: 2
24
+
SECP256K1_BENCH_ITERS: 2
25
25
CTIMETEST: yes
26
26
27
27
cat_logs_snippet: &CAT_LOGS
@@ -171,7 +171,7 @@ task:
171
171
memory: 1G
172
172
env:
173
173
WRAPPER_CMD: qemu-s390x
174
-
TEST_ITERS: 16
174
+
SECP256K1_TEST_ITERS: 16
175
175
HOST: s390x-linux-gnu
176
176
WITH_VALGRIND: no
177
177
ECDH: yes
@@ -194,7 +194,7 @@ task:
194
194
memory: 1G
195
195
env:
196
196
WRAPPER_CMD: qemu-arm
197
-
TEST_ITERS: 16
197
+
SECP256K1_TEST_ITERS: 16
198
198
HOST: arm-linux-gnueabihf
199
199
WITH_VALGRIND: no
200
200
ECDH: yes
@@ -218,7 +218,7 @@ task:
218
218
memory: 1G
219
219
env:
220
220
WRAPPER_CMD: qemu-aarch64
221
-
TEST_ITERS: 16
221
+
SECP256K1_TEST_ITERS: 16
222
222
HOST: aarch64-linux-gnu
223
223
WITH_VALGRIND: no
224
224
ECDH: yes
@@ -239,7 +239,7 @@ task:
239
239
memory: 1G
240
240
env:
241
241
WRAPPER_CMD: qemu-ppc64le
242
-
TEST_ITERS: 16
242
+
SECP256K1_TEST_ITERS: 16
243
243
HOST: powerpc64le-linux-gnu
244
244
WITH_VALGRIND: no
245
245
ECDH: yes
@@ -260,7 +260,7 @@ task:
260
260
memory: 1G
261
261
env:
262
262
WRAPPER_CMD: wine64-stable
263
-
TEST_ITERS: 16
263
+
SECP256K1_TEST_ITERS: 16
264
264
HOST: x86_64-w64-mingw32
265
265
WITH_VALGRIND: no
266
266
ECDH: yes
@@ -278,28 +278,26 @@ task:
278
278
container:
279
279
dockerfile: ci/linux-debian.Dockerfile
280
280
cpu: 1
281
-
memory: 1G
281
+
memory: 2G
282
282
env:
283
283
ECDH: yes
284
284
RECOVERY: yes
285
285
EXPERIMENTAL: yes
286
286
SCHNORRSIG: yes
287
287
CTIMETEST: no
288
-
EXTRAFLAGS: "--disable-openssl-tests"
289
288
matrix:
290
289
- name: "Valgrind (memcheck)"
291
290
env:
292
291
# The `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 (https://www.valgrind.org/docs/manual/manual-core.html)
If configured with `--enable-benchmark` (which is the default), binaries for benchmarking the libsecp256k1 functions will be present in the root directory after the build.
97
+
98
+
To print the benchmark result to the command line:
99
+
100
+
$ ./bench_name
101
+
102
+
To create a CSV file for the benchmark result :
103
+
104
+
$ ./bench_name | sed '2d;s/ \{1,\}//g' > bench_name.csv
You can import a key by running the following command with that individual’s fingerprint: `gpg --recv-keys "<fingerprint>"` Ensure that you put quotes around fingerprints containing spaces.
15
+
You can import a key by running the following command with that individual’s fingerprint: `gpg --keyserver hkps://keys.openpgp.org --recv-keys "<fingerprint>"` Ensure that you put quotes around fingerprints containing spaces.
0 commit comments