Skip to content

Commit 04b590d

Browse files
committed
secp256k1-zkp-sys: vendor to jonasnick/secp256k1-zkp#musig2
1 parent ab7f6d8 commit 04b590d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+8015
-3958
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# This file was automatically created by ./vendor-libsecp.sh
2-
f3708a1ecb445b1b05a0f8fcd1da6a88f83d89c4
2+
0c43aae082368084fc5ec5b3eeea4e4de232ea8f

secp256k1-zkp-sys/depend/secp256k1/.cirrus.yml

+183-56
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
env:
2-
WIDEMUL: auto
3-
BIGNUM: auto
2+
### compiler options
3+
HOST:
4+
# Specific warnings can be disabled with -Wno-error=foo.
5+
# -pedantic-errors is not equivalent to -Werror=pedantic and thus not implied by -Werror according to the GCC manual.
6+
WERROR_CFLAGS: -Werror -pedantic-errors
7+
MAKEFLAGS: -j2
8+
BUILD: check
9+
### secp256k1 config
410
STATICPRECOMPUTATION: yes
511
ECMULTGENPRECISION: auto
612
ASM: no
7-
BUILD: check
13+
WIDEMUL: auto
814
WITH_VALGRIND: yes
9-
RUN_VALGRIND: no
1015
EXTRAFLAGS:
11-
HOST:
16+
### secp256k1 modules
1217
ECDH: no
1318
RECOVERY: no
1419
SCHNORRSIG: no
@@ -18,11 +23,11 @@ env:
1823
WHITELIST: no
1924
MUSIG: no
2025
ECDSAADAPTOR: no
21-
EXPERIMENTAL: no
22-
CTIMETEST: yes
26+
### test options
27+
TEST_ITERS:
2328
BENCH: yes
24-
ITERS: 2
25-
MAKEFLAGS: -j2
29+
BENCH_ITERS: 2
30+
CTIMETEST: yes
2631

2732
cat_logs_snippet: &CAT_LOGS
2833
always:
@@ -65,47 +70,13 @@ task:
6570
- env: {WIDEMUL: int128, RECOVERY: yes, EXPERIMENTAL: yes, SCHNORRSIG: yes}
6671
- env: {WIDEMUL: int128, ECDH: yes, EXPERIMENTAL: yes, SCHNORRSIG: yes, ECDSA_S2C: yes, RANGEPROOF: yes, WHITELIST: yes, GENERATOR: yes, MUSIG: yes, ECDSAADAPTOR: yes}
6772
- env: {WIDEMUL: int128, ASM: x86_64}
68-
- env: {BIGNUM: no}
69-
- env: {BIGNUM: no, RECOVERY: yes, EXPERIMENTAL: yes, SCHNORRSIG: yes, ECDSA_S2C: yes, RANGEPROOF: yes, WHITELIST: yes, GENERATOR: yes, MUSIG: yes, ECDSAADAPTOR: yes}
70-
- env: {BIGNUM: no, STATICPRECOMPUTATION: no}
73+
- env: { RECOVERY: yes, EXPERIMENTAL: yes, SCHNORRSIG: yes, ECDSA_S2C: yes, RANGEPROOF: yes, WHITELIST: yes, GENERATOR: yes, MUSIG: yes, ECDSAADAPTOR: yes}
74+
- env: { STATICPRECOMPUTATION: no}
7175
- env: {BUILD: distcheck, WITH_VALGRIND: no, CTIMETEST: no, BENCH: no}
7276
- env: {CPPFLAGS: -DDETERMINISTIC}
7377
- env: {CFLAGS: -O0, CTIMETEST: no}
74-
- env:
75-
CFLAGS: "-fsanitize=undefined -fno-omit-frame-pointer"
76-
LDFLAGS: "-fsanitize=undefined -fno-omit-frame-pointer"
77-
UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"
78-
BIGNUM: no
79-
ASM: x86_64
80-
ECDH: yes
81-
RECOVERY: yes
82-
EXPERIMENTAL: yes
83-
SCHNORRSIG: yes
84-
ECDSA_S2C: yes
85-
RANGEPROOF: yes
86-
WHITELIST: yes
87-
GENERATOR: yes
88-
MUSIG: yes
89-
ECDSAADAPTOR: yes
90-
CTIMETEST: no
9178
- env: { ECMULTGENPRECISION: 2 }
9279
- env: { ECMULTGENPRECISION: 8 }
93-
- env:
94-
RUN_VALGRIND: yes
95-
BIGNUM: no
96-
ASM: x86_64
97-
ECDH: yes
98-
RECOVERY: yes
99-
EXPERIMENTAL: yes
100-
SCHNORRSIG: yes
101-
ECDSA_S2C: yes
102-
RANGEPROOF: yes
103-
WHITELIST: yes
104-
GENERATOR: yes
105-
MUSIG: yes
106-
ECDSAADAPTOR: yes
107-
EXTRAFLAGS: "--disable-openssl-tests"
108-
BUILD:
10980
matrix:
11081
- env:
11182
CC: gcc
@@ -139,11 +110,6 @@ task:
139110
CC: i686-linux-gnu-gcc
140111
- env:
141112
CC: clang --target=i686-pc-linux-gnu -isystem /usr/i686-linux-gnu/include
142-
matrix:
143-
- env:
144-
BIGNUM: gmp
145-
- env:
146-
BIGNUM: no
147113
<< : *MERGE_BASE
148114
test_script:
149115
- ./ci/cirrus.sh
@@ -153,8 +119,8 @@ task:
153119
name: "x86_64: macOS Catalina"
154120
macos_instance:
155121
image: catalina-base
156-
# As of d4ca81f48e tasks with valgrind enabled take about 60 minutes
157-
timeout_in: 90m
122+
# tasks with valgrind enabled take about 90 minutes
123+
timeout_in: 120m
158124
env:
159125
HOMEBREW_NO_AUTO_UPDATE: 1
160126
HOMEBREW_NO_INSTALL_CLEANUP: 1
@@ -204,7 +170,7 @@ task:
204170
# If we haven't restored from cached (and just run brew install), this is a no-op.
205171
- brew link valgrind
206172
brew_script:
207-
- brew install automake libtool gmp gcc@9
173+
- brew install automake libtool gcc@9
208174
<< : *MERGE_BASE
209175
test_script:
210176
- ./ci/cirrus.sh
@@ -217,11 +183,10 @@ task:
217183
cpu: 1
218184
memory: 1G
219185
env:
220-
QEMU_CMD: qemu-s390x
186+
WRAPPER_CMD: qemu-s390x
187+
TEST_ITERS: 16
221188
HOST: s390x-linux-gnu
222-
BUILD:
223189
WITH_VALGRIND: no
224-
BIGNUM: no
225190
ECDH: yes
226191
RECOVERY: yes
227192
EXPERIMENTAL: yes
@@ -239,3 +204,165 @@ task:
239204
- rm /etc/ld.so.cache
240205
- ./ci/cirrus.sh
241206
<< : *CAT_LOGS
207+
208+
task:
209+
name: "ARM32: Linux (Debian stable, QEMU)"
210+
container:
211+
dockerfile: ci/linux-debian.Dockerfile
212+
cpu: 1
213+
memory: 1G
214+
env:
215+
WRAPPER_CMD: qemu-arm
216+
TEST_ITERS: 16
217+
HOST: arm-linux-gnueabihf
218+
WITH_VALGRIND: no
219+
ECDH: yes
220+
RECOVERY: yes
221+
EXPERIMENTAL: yes
222+
SCHNORRSIG: yes
223+
CTIMETEST: no
224+
matrix:
225+
- env: {}
226+
- env: {ASM: arm}
227+
<< : *MERGE_BASE
228+
test_script:
229+
- ./ci/cirrus.sh
230+
<< : *CAT_LOGS
231+
232+
task:
233+
name: "ARM64: Linux (Debian stable, QEMU)"
234+
container:
235+
dockerfile: ci/linux-debian.Dockerfile
236+
cpu: 1
237+
memory: 1G
238+
env:
239+
WRAPPER_CMD: qemu-aarch64
240+
TEST_ITERS: 16
241+
HOST: aarch64-linux-gnu
242+
WITH_VALGRIND: no
243+
ECDH: yes
244+
RECOVERY: yes
245+
EXPERIMENTAL: yes
246+
SCHNORRSIG: yes
247+
CTIMETEST: no
248+
<< : *MERGE_BASE
249+
test_script:
250+
- ./ci/cirrus.sh
251+
<< : *CAT_LOGS
252+
253+
task:
254+
name: "ppc64le: Linux (Debian stable, QEMU)"
255+
container:
256+
dockerfile: ci/linux-debian.Dockerfile
257+
cpu: 1
258+
memory: 1G
259+
env:
260+
WRAPPER_CMD: qemu-ppc64le
261+
TEST_ITERS: 16
262+
HOST: powerpc64le-linux-gnu
263+
WITH_VALGRIND: no
264+
ECDH: yes
265+
RECOVERY: yes
266+
EXPERIMENTAL: yes
267+
SCHNORRSIG: yes
268+
CTIMETEST: no
269+
<< : *MERGE_BASE
270+
test_script:
271+
- ./ci/cirrus.sh
272+
<< : *CAT_LOGS
273+
274+
task:
275+
name: "x86_64 (mingw32-w64): Windows (Debian stable, Wine)"
276+
container:
277+
dockerfile: ci/linux-debian.Dockerfile
278+
cpu: 1
279+
memory: 1G
280+
env:
281+
WRAPPER_CMD: wine64-stable
282+
TEST_ITERS: 16
283+
HOST: x86_64-w64-mingw32
284+
WITH_VALGRIND: no
285+
ECDH: yes
286+
RECOVERY: yes
287+
EXPERIMENTAL: yes
288+
SCHNORRSIG: yes
289+
CTIMETEST: no
290+
<< : *MERGE_BASE
291+
test_script:
292+
- ./ci/cirrus.sh
293+
<< : *CAT_LOGS
294+
295+
# Sanitizers
296+
task:
297+
timeout_in: 120m
298+
container:
299+
dockerfile: ci/linux-debian.Dockerfile
300+
cpu: 1
301+
memory: 2G
302+
env:
303+
ECDH: yes
304+
RECOVERY: yes
305+
EXPERIMENTAL: yes
306+
SCHNORRSIG: yes
307+
ECDSA_S2C: yes
308+
RANGEPROOF: yes
309+
WHITELIST: yes
310+
GENERATOR: yes
311+
MUSIG: yes
312+
ECDSAADAPTOR: yes
313+
CTIMETEST: no
314+
EXTRAFLAGS: "--disable-openssl-tests"
315+
matrix:
316+
- name: "Valgrind (memcheck)"
317+
env:
318+
# 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)
319+
WRAPPER_CMD: "valgrind --error-exitcode=42"
320+
TEST_ITERS: 8
321+
- name: "UBSan, ASan, LSan"
322+
env:
323+
CFLAGS: "-fsanitize=undefined,address"
324+
CFLAGS_FOR_BUILD: "-fsanitize=undefined,address"
325+
UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"
326+
ASAN_OPTIONS: "strict_string_checks=1:detect_stack_use_after_return=1:detect_leaks=1"
327+
LSAN_OPTIONS: "use_unaligned=1"
328+
TEST_ITERS: 32
329+
# Try to cover many configurations with just a tiny matrix.
330+
matrix:
331+
- env:
332+
ASM: auto
333+
STATICPRECOMPUTATION: yes
334+
- env:
335+
ASM: no
336+
STATICPRECOMPUTATION: no
337+
ECMULTGENPRECISION: 2
338+
matrix:
339+
- env:
340+
CC: clang
341+
- env:
342+
HOST: i686-linux-gnu
343+
CC: i686-linux-gnu-gcc
344+
<< : *MERGE_BASE
345+
test_script:
346+
- ./ci/cirrus.sh
347+
<< : *CAT_LOGS
348+
349+
task:
350+
name: "C++ -fpermissive"
351+
container:
352+
dockerfile: ci/linux-debian.Dockerfile
353+
cpu: 1
354+
memory: 1G
355+
env:
356+
# ./configure correctly errors out when given CC=g++.
357+
# We hack around this by passing CC=g++ only to make.
358+
CC: gcc
359+
MAKEFLAGS: -j2 CC=g++ CFLAGS=-fpermissive
360+
WERROR_CFLAGS:
361+
EXPERIMENTAL: yes
362+
ECDH: yes
363+
RECOVERY: yes
364+
SCHNORRSIG: yes
365+
<< : *MERGE_BASE
366+
test_script:
367+
- ./ci/cirrus.sh
368+
<< : *CAT_LOGS

secp256k1-zkp-sys/depend/secp256k1/.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ aclocal.m4
2525
autom4te.cache/
2626
config.log
2727
config.status
28+
conftest*
2829
*.tar.gz
2930
*.la
3031
libtool
@@ -35,6 +36,14 @@ libtool
3536
*~
3637
*.log
3738
*.trs
39+
40+
coverage/
41+
coverage.html
42+
coverage.*.html
43+
*.gcda
44+
*.gcno
45+
*.gcov
46+
3847
src/libsecp256k1-config.h
3948
src/libsecp256k1-config.h.in
4049
src/ecmult_static_context.h
@@ -54,3 +63,5 @@ build-aux/test-driver
5463
src/stamp-h1
5564
libsecp256k1.pc
5665
contrib/gh-pr-create.sh
66+
67+
example_musig

0 commit comments

Comments
 (0)