Skip to content

Commit 3fcc6fc

Browse files
committed
Squashed 'src/secp256k1/' changes from 0129b77767e..5d2df054196
5d2df054196 Merge BlockstreamResearch/secp256k1-zkp#120: Add MuSig Key Aggregation spec fc26ca8ddef musig: remove unnecessary constant time normalize in combine 48f63efe683 musig: remove unnecessary branch in pubkey_tweak_add 5860b5e0fe7 musig: do not also require schnorrsig module config flag f27fd1d5e75 musig: improve test coverage of pubkey_combine 56014e8ca01 musig: change pubkey_combine arg to array of pointers to pks 08fa02d5791 musig: add key aggregation spec draft 4a9b059b16d musig: rename Musig coefficient to KeyAgg coefficient 4bc46d836e7 musig: optimize key aggregation using const 1 for 2nd key 2310849f50f musig: compute musig coefficient by hashing key instead of index 9683c8a7eb6 musig: add static test vectors for key aggregation 9b3d7bf5361 extrakeys: add xonly_sort function f31affd8a61 extrakeys: add hsort, in-place, iterative heapsort d9560e0af78 Merge BlockstreamResearch/secp256k1-zkp#136: Eliminate a wrong -Wmaybe-uninitialized warning in GCC 6db00f5b2e0 Merge BlockstreamResearch/secp256k1-zkp#132: Upstream PRs 831, 907, 903, 889, 918, 906, 928, 922, 933, Merge bitcoin-core/secp256k1#936: Fix gen_context/ASM build on ARM, 925, 937, 926, Merge bitcoin-core/secp256k1#940: contrib: Explain explicit header guards, 850, 930, 941, 846, 947, 662, 950 cc0b279568d Eliminate a wrong -Wmaybe-uninitialized warning in GCC f09497ea3e0 CI: tweak cirrus.yml to prevent OOM and timeout w sanitizer/valgrind 7226cf215aa ecdsa_adaptor: fix too small buffer in tests b053e853d4f ecdsa_adaptor: fix test case with invalid signature 91b64770c3b Merge BlockstreamResearch/secp256k1-zkp#135: sync-upstream: fix "end" parameter for specifying range 907633e2e9a sync-upstream: fix "end" parameter for specifying range 394f49fd1a6 sync-upstream: quote variables 1bb5db3d602 Merge BlockstreamResearch/secp256k1-zkp#134: sync-upstream: parse merge commits w/ and w/o repo identifier 9321d42f751 sync-upstream: parse merge commits w/ and w/o repo identifier d27e4598610 Revert "Remove unused Jacobi symbol support" edcacc2b2ec Merge commits '26de4dfe 6e898534 c083cc6e 1e5d50fa cc2c09e3 efad3506 7012a188 34388af6 98e0358d d0bd2693 185a6af2 6c52ae87 69394879 1e78c18d 202a030f bf0ac460 399722a6 3dc8c072 50f33677 7973576f 1758a92f ' into temp-merge-950 1758a92ffd8 Merge ElementsProject#950: ci: Add ppc64le build c58c4ea4707 ci: Add ppc64le build 7973576f6e3 Merge ElementsProject#662: Add ecmult_gen, ecmult_const and ecmult to benchmark 8f879c2887e Fix array size in bench_ecmult 2fe1b50df16 Add ecmult_gen, ecmult_const and ecmult to benchmark 593e6bad9c5 Clean up ecmult_bench to make space for more benchmarks 50f33677122 Merge ElementsProject#947: ci: Run PRs on merge result even for i686 a35fdd3478f ci: Run PRs on merge result even for i686 3dc8c072b6d Merge ElementsProject#846: ci: Run ASan/LSan and reorganize sanitizer and Valgrind jobs 02dcea1ad94 ci: Make test iterations configurable and tweak for sanitizer builds 489ff5c20a1 tests: Treat empty SECP2561_TEST_ITERS as if it was unset fcfcb97e74b ci: Simplify to use generic wrapper for QEMU, Valgrind, etc de4157f13ac ci: Run ASan/LSan and reorganize sanitizer and Valgrind jobs 399722a63ad Merge ElementsProject#941: Clean up git tree 09b3bb8648f Clean up git tree bf0ac460661 Merge ElementsProject#930: Add ARM32/ARM64 CI 202a030f7d1 Merge ElementsProject#850: add `secp256k1_ec_pubkey_cmp` method 1e78c18d5b8 Merge bitcoin-core/secp256k1#940: contrib: Explain explicit header guards 69394879b64 Merge ElementsProject#926: secp256k1.h: clarify that by default arguments must be != NULL 6eceec6d566 add `secp256k1_xonly_pubkey_cmp` method 0d9561ae879 add `secp256k1_ec_pubkey_cmp` method 22a9ea154a2 contrib: Explain explicit header guards 6c52ae87247 Merge ElementsProject#937: Have ge_set_gej_var, gej_double_var and ge_set_all_gej_var initialize all fields of their outputs. 185a6af2279 Merge ElementsProject#925: changed include statements without prefix 'include/' 14c9739a1fb tests: Improve secp256k1_ge_set_all_gej_var for some infinity inputs 4a19668c37b tests: Test secp256k1_ge_set_all_gej_var for all infinity inputs 3c90bdda95a change local lib headers to be relative for those pointing at "include/" dir 45b6468d7e3 Have secp256k1_ge_set_all_gej_var initialize all fields. Previous behaviour would not initialize r->y values in the case where infinity is passed in. Furthermore, the previous behaviour wouldn't initialize anything in the case where all inputs were infinity. 31c0f6de413 Have secp256k1_gej_double_var initialize all fields. Previous behaviour would not initialize r->x and r->y values in the case where infinity is passed in. dd6c3de3227 Have secp256k1_ge_set_gej_var initialize all fields. Previous behaviour would not initialize r->x and r->y values in the case where infinity is passed in. d0bd2693e30 Merge bitcoin-core/secp256k1#936: Fix gen_context/ASM build on ARM 8bbad7a18e5 Add asm build to ARM32 CI 7d65ed52142 Add ARM32/ARM64 CI c8483520c90 Makefile.am: Don't pass a variable twice 2161f31785e Makefile.am: Honor config when building gen_context 99f47c20ec4 gen_context: Don't use external ASM because it complicates the build 98e0358d297 Merge ElementsProject#933: Avoids a missing brace warning in schnorrsig/tests_impl.h on old compilers 99e2d5be0db Avoids a missing brace warning in schnorrsig/tests_impl.h on old compilers. 34388af6b6a Merge ElementsProject#922: Add mingw32-w64/wine CI build 7012a188e6e Merge ElementsProject#928: Define SECP256K1_BUILD in secp256k1.c directly. ed5a199bed6 tests: fopen /dev/urandom in binary mode ae9e648526c Define SECP256K1_BUILD in secp256k1.c directly. 4dc37bf81b5 Add mingw32-w64/wine CI build 0881633dfd0 secp256k1.h: clarify that by default arguments must be != NULL efad3506a89 Merge ElementsProject#906: Use modified divsteps with initial delta=1/2 for constant-time cc2c09e3a78 Merge ElementsProject#918: Clean up configuration in gen_context 07067967ee9 add ECMULT_GEN_PREC_BITS to basic_config.h a3aa2628c7b gen_context: Don't include basic-config.h be0609fd54a Add unit tests for edge cases with delta=1/2 variant of divsteps cd393ce2283 Optimization: only do 59 hddivsteps per iteration instead of 62 277b224b6ab Use modified divsteps with initial delta=1/2 for constant-time 376ca366db0 Fix typo in explanation 1e5d50fa93d Merge ElementsProject#889: fix uninitialized read in tests f3708a1ecb4 Merge ElementsProject#117: Add ECDSA adaptor signatures module 5710ebacb9e Merge ElementsProject#128: Make function argument name consistent with doc b0ffa923199 ecdsa_adaptor: add tests 6955af5ca89 ecdsa_adaptor: add ECDSA adaptor signature APIs c083cc6e52a Merge ElementsProject#903: Make argument of fe_normalizes_to_zero{_var} const 6e898534ff4 Merge ElementsProject#907: changed import to use brackets <> for openssl cc82ad5ab74 Make function argument name consistent with doc 4504472269d changed import to use brackets <> for openssl as they are not local to the project 26de4dfeb1f Merge ElementsProject#831: Safegcd inverses, drop Jacobi symbols, remove libgmp b508e5dd9b1 ecdsa_adaptor: add support for proof of discrete logarithm equality d8f336564fe ecdsa_adaptor: add nonce function and tags 654cd633f50 ecdsa_adaptor: initialize project 23c3fb629b9 Make argument of fe_normalizes_to_zero{_var} const 24ad04fc064 Make scalar_inverse{,_var} benchmark scale with SECP256K1_BENCH_ITERS ebc1af700f9 Optimization: track f,g limb count and pass to new variable-time update_fg_var b306935ac12 Optimization: use formulas instead of lookup tables for cancelling g bits 9164a1b6582 Optimization: special-case zero modulus limbs in modinv64 1f233b3fa05 Remove num/gmp support fac477f822a Merge ElementsProject#126: Upstream PRs ElementsProject#854 ElementsProject#852 ElementsProject#857 ElementsProject#858 ElementsProject#860 ElementsProject#845 ElementsProject#862 ElementsProject#875 ElementsProject#878 ElementsProject#874 ElementsProject#877 ElementsProject#880 ElementsProject#864 ElementsProject#882 ElementsProject#894 ElementsProject#891 ElementsProject#901 20448b8d09a Remove unused Jacobi symbol support 5437e7bdfbf Remove unused scalar_sqr aa9cc521800 Improve field/scalar inverse tests 1e0e885c8ac Make field/scalar code use the new modinv modules for inverses 436281afdcb Move secp256k1_fe_inverse{_var} to per-impl files aa404d53bef Move secp256k1_scalar_{inverse{_var},is_even} to per-impl files 08d54964e51 Improve bounds checks in modinv modules 6a7861f646f Merge ElementsProject#127: sync-upstream: Create proper links to upstream PRs 4091e619248 cirrus: increase timeout for macOS tasks 136ed8f84d9 sync-upstream: Fix output of command to reproduce 38f1e777d49 sync-upstream: Create proper links to upstream PRs 79d4c3ac681 whitelist: add SECP_INCLUDES to bench_whitelist CPPFLAGS 649bf201d85 musig: fix tests for 32-bit 151aac00d31 Add tests for modinv modules d8a92fcc4c6 Add extensive comments on the safegcd algorithm and implementation 8e415acba25 Add safegcd based modular inverse modules de0a643c3dc Add secp256k1_ctz{32,64}_var functions d4ca81f48e9 Merge commits 'dc6e5c3a 2d9e7175 b61f9da5 98dac878 8c727b90 328aaef2 f2d9aeae b732701f db726782 5671e5f3 a4abaab7 659d0d47 f8c0b57e 24d1656c 3a8b47bc ebdba03c 4c3ba88c ' into temp-merge-901 4c3ba88c3a8 Merge ElementsProject#901: ci: Switch all Linux builds to Debian and more improvements 9361f360bb0 ci: Select number of parallel make jobs depending on CI environment 28eccdf8064 ci: Split output of logs into multiple sections c7f754fe4d5 ci: Run PRs on merge result instead of on the source branch b994a8be3cf ci: Print information about binaries using "file" f24e122d13d ci: Switch all Linux builds to Debian ebdba03cb56 Merge ElementsProject#891: build: Add workaround for automake 1.13 and older 3a8b47bc6d1 Merge ElementsProject#894: ctime_test: move context randomization test to the end 6da00ec6245 Merge pull request ElementsProject#124 from apoelstra/2021-02--rename-klepto e354c5751d6 ecdsa_s2c: rename anti-klepto to anti-exfil 7d3497cdc4c ctime_test: move context randomization test to the end 99a1cfec174 print warnings for conditional-uninitialized 3d2cf6c5bd3 initialize variable in tests f329bba2442 build: Add workaround for automake 1.13 and older 24d1656c328 Merge ElementsProject#882: Use bit ops instead of int mult for constant-time logic in gej_add_ge e491d06b98c Use bit ops instead of int mult for constant-time logic in gej_add_ge f8c0b57e6ba Merge ElementsProject#864: Add support for Cirrus CI cc2a5451dc8 ci: Refactor Nix shell files 2480e55c8f3 ci: Remove support for Travis CI 2b359f1c1d8 ci: Enable simple cache for brewing valgrind on macOS 8c02e465c5a ci: Add support for Cirrus CI 659d0d47989 Merge ElementsProject#880: Add parens around ROUND_TO_ALIGN's parameter. b6f649889ae Add parens around ROUND_TO_ALIGN's parameter. This makes the macro robust against a hypothetical ROUND_TO_ALIGN(foo ? sizeA : size B) invocation. a4abaab7931 Merge ElementsProject#877: Add missing secp256k1_ge_set_gej_var decl. 5671e5f3fd0 Merge ElementsProject#874: Remove underscores from header defs. db726782fa2 Merge ElementsProject#878: Remove unused secp256k1_fe_inv_all_var b732701faa7 Merge ElementsProject#875: Avoid casting (void**) values. 75d2ae149ef Remove unused secp256k1_fe_inv_all_var 482e4a9cfce Add missing secp256k1_ge_set_gej_var decl. 27306186045 Avoid casting (void**) values. Replaced with an expression that only casts (void*) values. fb390c5299e Remove underscores from header defs. This makes them consistent with other files and avoids reserved identifiers. ed69ea79b42 Merge ElementsProject#98: Add contrib/sync-upstream.sh script to automate syncing PRs 7eeacd7725f Add contrib/sync-upstream.sh script to automate merging upstream PRs f2d9aeae6d5 Merge ElementsProject#862: Autoconf improvements 328aaef22a4 Merge ElementsProject#845: Extract the secret key from a keypair 3c15130709d Improve CC_FOR_BUILD detection 47802a47624 Restructure and tidy configure.ac 252c19dfc65 Ask brew for valgrind include path 8c727b9087a Merge ElementsProject#860: fixed trivial typo cfac088e1b2 Merge ElementsProject#119: Remove repeated schnorr flag from travis config 96c83a83dcf Remove repeated schnorr flag from travis config d2b6740688f Merge pull request ElementsProject#118 from jonasnick/clarify-rangeproof-rewind 41d6963bc1c rangeproof: clarify rewind outlen argument 673e551f4d1 Merge ElementsProject#111: Add ECDSA sign-to-contract module b7bc3a4aaa5 fixed typo 47efb5e39a1 ecdsa-s2c: add ctime tests 396b558273c ecdsa-s2c: add anti-klepto protocol 290dee566e1 ecdsa-s2c: add actual sign-to-contract functionality 8e46cac5b31 ecdsa-s2c: block in module 826bd04b43f add eccommit functionality 33cb3c2b1fc Add secret key extraction from keypair to constant time tests 36d9dc1e8e6 Add seckey extraction from keypair to the extrakeys tests fc96aa73f5c Add a function to extract the secretkey from a keypair 98dac878398 Merge ElementsProject#858: Fix insecure links 07aa4c70ffb Fix insecure links b61f9da54ef Merge ElementsProject#857: docs: fix simple typo, dependecy -> dependency 18aadf9d288 docs: fix simple typo, dependecy -> dependency 2d9e7175c6e Merge ElementsProject#852: Add sage script for generating scalar_split_lambda constants dc6e5c3a5c4 Merge ElementsProject#854: Rename msg32 to msghash32 in ecdsa_sign/verify and add explanation 6e85d675aaf Rename tweak to tweak32 in public API f587f04e357 Rename msg32 to msghash32 in ecdsa_sign/verify and add explanation 329a2e0a3f2 sage: Add script for generating scalar_split_lambda constants f554dfc7088 sage: Reorganize files git-subtree-dir: src/secp256k1 git-subtree-split: 5d2df0541960554be5c0ba58d86e5fa479935000
1 parent 5fbc67e commit 3fcc6fc

File tree

120 files changed

+9443
-2559
lines changed

Some content is hidden

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

120 files changed

+9443
-2559
lines changed

.cirrus.yml

+342
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,342 @@
1+
env:
2+
WIDEMUL: auto
3+
STATICPRECOMPUTATION: yes
4+
ECMULTGENPRECISION: auto
5+
ASM: no
6+
BUILD: check
7+
WITH_VALGRIND: yes
8+
EXTRAFLAGS:
9+
HOST:
10+
ECDH: no
11+
RECOVERY: no
12+
SCHNORRSIG: no
13+
ECDSA_S2C: no
14+
GENERATOR: no
15+
RANGEPROOF: no
16+
WHITELIST: no
17+
MUSIG: no
18+
ECDSAADAPTOR: no
19+
EXPERIMENTAL: no
20+
CTIMETEST: yes
21+
BENCH: yes
22+
TEST_ITERS:
23+
BENCH_ITERS: 2
24+
MAKEFLAGS: -j2
25+
26+
cat_logs_snippet: &CAT_LOGS
27+
always:
28+
cat_tests_log_script:
29+
- cat tests.log || true
30+
cat_exhaustive_tests_log_script:
31+
- cat exhaustive_tests.log || true
32+
cat_valgrind_ctime_test_log_script:
33+
- cat valgrind_ctime_test.log || true
34+
cat_bench_log_script:
35+
- cat bench.log || true
36+
on_failure:
37+
cat_config_log_script:
38+
- cat config.log || true
39+
cat_test_env_script:
40+
- cat test_env.log || true
41+
cat_ci_env_script:
42+
- env
43+
44+
merge_base_script_snippet: &MERGE_BASE
45+
merge_base_script:
46+
- if [ "$CIRRUS_PR" = "" ]; then exit 0; fi
47+
- git fetch $CIRRUS_REPO_CLONE_URL $CIRRUS_BASE_BRANCH
48+
- git config --global user.email "[email protected]"
49+
- git config --global user.name "ci"
50+
- git merge FETCH_HEAD # Merge base to detect silent merge conflicts
51+
52+
task:
53+
name: "x86_64: Linux (Debian stable)"
54+
container:
55+
dockerfile: ci/linux-debian.Dockerfile
56+
# Reduce number of CPUs to be able to do more builds in parallel.
57+
cpu: 1
58+
# More than enough for our scripts.
59+
memory: 1G
60+
matrix: &ENV_MATRIX
61+
- env: {WIDEMUL: int64, RECOVERY: yes}
62+
- env: {WIDEMUL: int64, ECDH: yes, EXPERIMENTAL: yes, SCHNORRSIG: yes, ECDSA_S2C: yes, RANGEPROOF: yes, WHITELIST: yes, GENERATOR: yes, MUSIG: yes, ECDSAADAPTOR: yes}
63+
- env: {WIDEMUL: int128}
64+
- env: {WIDEMUL: int128, RECOVERY: yes, EXPERIMENTAL: yes, SCHNORRSIG: yes}
65+
- env: {WIDEMUL: int128, ECDH: yes, EXPERIMENTAL: yes, SCHNORRSIG: yes, ECDSA_S2C: yes, RANGEPROOF: yes, WHITELIST: yes, GENERATOR: yes, MUSIG: yes, ECDSAADAPTOR: yes}
66+
- env: {WIDEMUL: int128, ASM: x86_64}
67+
- env: { RECOVERY: yes, EXPERIMENTAL: yes, SCHNORRSIG: yes, ECDSA_S2C: yes, RANGEPROOF: yes, WHITELIST: yes, GENERATOR: yes, MUSIG: yes, ECDSAADAPTOR: yes}
68+
- env: { STATICPRECOMPUTATION: no}
69+
- env: {BUILD: distcheck, WITH_VALGRIND: no, CTIMETEST: no, BENCH: no}
70+
- env: {CPPFLAGS: -DDETERMINISTIC}
71+
- env: {CFLAGS: -O0, CTIMETEST: no}
72+
- env: { ECMULTGENPRECISION: 2 }
73+
- env: { ECMULTGENPRECISION: 8 }
74+
matrix:
75+
- env:
76+
CC: gcc
77+
- env:
78+
CC: clang
79+
<< : *MERGE_BASE
80+
test_script:
81+
- ./ci/cirrus.sh
82+
<< : *CAT_LOGS
83+
84+
task:
85+
name: "i686: Linux (Debian stable)"
86+
container:
87+
dockerfile: ci/linux-debian.Dockerfile
88+
cpu: 1
89+
memory: 1G
90+
env:
91+
HOST: i686-linux-gnu
92+
ECDH: yes
93+
RECOVERY: yes
94+
EXPERIMENTAL: yes
95+
SCHNORRSIG: yes
96+
ECDSA_S2C: yes
97+
RANGEPROOF: yes
98+
WHITELIST: yes
99+
GENERATOR: yes
100+
MUSIG: yes
101+
ECDSAADAPTOR: yes
102+
matrix:
103+
- env:
104+
CC: i686-linux-gnu-gcc
105+
- env:
106+
CC: clang --target=i686-pc-linux-gnu -isystem /usr/i686-linux-gnu/include
107+
<< : *MERGE_BASE
108+
test_script:
109+
- ./ci/cirrus.sh
110+
<< : *CAT_LOGS
111+
112+
task:
113+
name: "x86_64: macOS Catalina"
114+
macos_instance:
115+
image: catalina-base
116+
# As of d4ca81f48e tasks with valgrind enabled take about 60 minutes
117+
timeout_in: 90m
118+
env:
119+
HOMEBREW_NO_AUTO_UPDATE: 1
120+
HOMEBREW_NO_INSTALL_CLEANUP: 1
121+
# Cirrus gives us a fixed number of 12 virtual CPUs. Not that we even have that many jobs at the moment...
122+
MAKEFLAGS: -j13
123+
matrix:
124+
<< : *ENV_MATRIX
125+
matrix:
126+
- env:
127+
CC: gcc-9
128+
- env:
129+
CC: clang
130+
# Update Command Line Tools
131+
# Uncomment this if the Command Line Tools on the CirrusCI macOS image are too old to brew valgrind.
132+
# See https://apple.stackexchange.com/a/195963 for the implementation.
133+
## update_clt_script:
134+
## - system_profiler SPSoftwareDataType
135+
## - touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
136+
## - |-
137+
## PROD=$(softwareupdate -l | grep "*.*Command Line" | tail -n 1 | awk -F"*" '{print $2}' | sed -e 's/^ *//' | sed 's/Label: //g' | tr -d '\n')
138+
## # For debugging
139+
## - softwareupdate -l && echo "PROD: $PROD"
140+
## - softwareupdate -i "$PROD" --verbose
141+
## - rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
142+
##
143+
brew_valgrind_pre_script:
144+
- brew config
145+
- brew tap --shallow LouisBrunner/valgrind
146+
# Fetch valgrind source but don't build it yet.
147+
- brew fetch --HEAD LouisBrunner/valgrind/valgrind
148+
brew_valgrind_cache:
149+
# This is $(brew --cellar valgrind) but command substition does not work here.
150+
folder: /usr/local/Cellar/valgrind
151+
# Rebuild cache if ...
152+
fingerprint_script:
153+
# ... macOS version changes:
154+
- sw_vers
155+
# ... brew changes:
156+
- brew config
157+
# ... valgrind changes:
158+
- git -C "$(brew --cache)/valgrind--git" rev-parse HEAD
159+
populate_script:
160+
# If there's no hit in the cache, build and install valgrind.
161+
- brew install --HEAD LouisBrunner/valgrind/valgrind
162+
brew_valgrind_post_script:
163+
# If we have restored valgrind from the cache, tell brew to create symlink to the PATH.
164+
# If we haven't restored from cached (and just run brew install), this is a no-op.
165+
- brew link valgrind
166+
brew_script:
167+
- brew install automake libtool gcc@9
168+
<< : *MERGE_BASE
169+
test_script:
170+
- ./ci/cirrus.sh
171+
<< : *CAT_LOGS
172+
173+
task:
174+
name: "s390x (big-endian): Linux (Debian stable, QEMU)"
175+
container:
176+
dockerfile: ci/linux-debian.Dockerfile
177+
cpu: 1
178+
memory: 1G
179+
env:
180+
WRAPPER_CMD: qemu-s390x
181+
TEST_ITERS: 16
182+
HOST: s390x-linux-gnu
183+
WITH_VALGRIND: no
184+
ECDH: yes
185+
RECOVERY: yes
186+
EXPERIMENTAL: yes
187+
SCHNORRSIG: yes
188+
ECDSA_S2C: yes
189+
RANGEPROOF: yes
190+
WHITELIST: yes
191+
GENERATOR: yes
192+
MUSIG: yes
193+
ECDSAADAPTOR: yes
194+
CTIMETEST: no
195+
<< : *MERGE_BASE
196+
test_script:
197+
# https://sourceware.org/bugzilla/show_bug.cgi?id=27008
198+
- rm /etc/ld.so.cache
199+
- ./ci/cirrus.sh
200+
<< : *CAT_LOGS
201+
202+
task:
203+
name: "ARM32: Linux (Debian stable, QEMU)"
204+
container:
205+
dockerfile: ci/linux-debian.Dockerfile
206+
cpu: 1
207+
memory: 1G
208+
env:
209+
WRAPPER_CMD: qemu-arm
210+
TEST_ITERS: 16
211+
HOST: arm-linux-gnueabihf
212+
WITH_VALGRIND: no
213+
ECDH: yes
214+
RECOVERY: yes
215+
EXPERIMENTAL: yes
216+
SCHNORRSIG: yes
217+
CTIMETEST: no
218+
matrix:
219+
- env: {}
220+
- env: {ASM: arm}
221+
<< : *MERGE_BASE
222+
test_script:
223+
- ./ci/cirrus.sh
224+
<< : *CAT_LOGS
225+
226+
task:
227+
name: "ARM64: Linux (Debian stable, QEMU)"
228+
container:
229+
dockerfile: ci/linux-debian.Dockerfile
230+
cpu: 1
231+
memory: 1G
232+
env:
233+
WRAPPER_CMD: qemu-aarch64
234+
TEST_ITERS: 16
235+
HOST: aarch64-linux-gnu
236+
WITH_VALGRIND: no
237+
ECDH: yes
238+
RECOVERY: yes
239+
EXPERIMENTAL: yes
240+
SCHNORRSIG: yes
241+
CTIMETEST: no
242+
<< : *MERGE_BASE
243+
test_script:
244+
- ./ci/cirrus.sh
245+
<< : *CAT_LOGS
246+
247+
task:
248+
name: "ppc64le: Linux (Debian stable, QEMU)"
249+
container:
250+
dockerfile: ci/linux-debian.Dockerfile
251+
cpu: 1
252+
memory: 1G
253+
env:
254+
WRAPPER_CMD: qemu-ppc64le
255+
TEST_ITERS: 16
256+
HOST: powerpc64le-linux-gnu
257+
WITH_VALGRIND: no
258+
ECDH: yes
259+
RECOVERY: yes
260+
EXPERIMENTAL: yes
261+
SCHNORRSIG: yes
262+
CTIMETEST: no
263+
<< : *MERGE_BASE
264+
test_script:
265+
- ./ci/cirrus.sh
266+
<< : *CAT_LOGS
267+
268+
task:
269+
name: "x86_64 (mingw32-w64): Windows (Debian stable, Wine)"
270+
container:
271+
dockerfile: ci/linux-debian.Dockerfile
272+
cpu: 1
273+
memory: 1G
274+
env:
275+
WRAPPER_CMD: wine64-stable
276+
TEST_ITERS: 16
277+
HOST: x86_64-w64-mingw32
278+
WITH_VALGRIND: no
279+
ECDH: yes
280+
RECOVERY: yes
281+
EXPERIMENTAL: yes
282+
SCHNORRSIG: yes
283+
CTIMETEST: no
284+
<< : *MERGE_BASE
285+
test_script:
286+
- ./ci/cirrus.sh
287+
<< : *CAT_LOGS
288+
289+
# Sanitizers
290+
task:
291+
timeout_in: 120m
292+
container:
293+
dockerfile: ci/linux-debian.Dockerfile
294+
cpu: 1
295+
memory: 2G
296+
env:
297+
ECDH: yes
298+
RECOVERY: yes
299+
EXPERIMENTAL: yes
300+
SCHNORRSIG: yes
301+
ECDSA_S2C: yes
302+
RANGEPROOF: yes
303+
WHITELIST: yes
304+
GENERATOR: yes
305+
MUSIG: yes
306+
ECDSAADAPTOR: yes
307+
CTIMETEST: no
308+
EXTRAFLAGS: "--disable-openssl-tests"
309+
matrix:
310+
- name: "Valgrind (memcheck)"
311+
env:
312+
# 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)
313+
WRAPPER_CMD: "valgrind --error-exitcode=42"
314+
TEST_ITERS: 8
315+
- name: "UBSan, ASan, LSan"
316+
env:
317+
CFLAGS: "-fsanitize=undefined,address"
318+
CFLAGS_FOR_BUILD: "-fsanitize=undefined,address"
319+
UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"
320+
ASAN_OPTIONS: "strict_string_checks=1:detect_stack_use_after_return=1:detect_leaks=1"
321+
LSAN_OPTIONS: "use_unaligned=1"
322+
TEST_ITERS: 32
323+
# Try to cover many configurations with just a tiny matrix.
324+
matrix:
325+
- env:
326+
ASM: auto
327+
STATICPRECOMPUTATION: yes
328+
- env:
329+
ASM: no
330+
STATICPRECOMPUTATION: no
331+
ECMULTGENPRECISION: 2
332+
matrix:
333+
- env:
334+
CC: clang
335+
- env:
336+
HOST: i686-linux-gnu
337+
CC: i686-linux-gnu-gcc
338+
<< : *MERGE_BASE
339+
test_script:
340+
- ./ci/cirrus.sh
341+
<< : *CAT_LOGS
342+

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ libtool
3535
*~
3636
*.log
3737
*.trs
38+
39+
coverage/
40+
coverage.html
41+
coverage.*.html
42+
*.gcda
43+
*.gcno
44+
*.gcov
45+
3846
src/libsecp256k1-config.h
3947
src/libsecp256k1-config.h.in
4048
src/ecmult_static_context.h
@@ -53,3 +61,4 @@ build-aux/compile
5361
build-aux/test-driver
5462
src/stamp-h1
5563
libsecp256k1.pc
64+
contrib/gh-pr-create.sh

0 commit comments

Comments
 (0)