Skip to content

Commit d54574b

Browse files
Squashed 'Vendor/secp256k1/' changes from a660a497..1a53f496
1a53f496 Merge bitcoin-core/secp256k1#1808: Prepare for 0.7.1 20a209f1 release: prepare for 0.7.1 c4b6a81a changelog: update in preparation for the v0.7.1 release ebb35882 Merge bitcoin-core/secp256k1#1796: bench: fail early if user inputs invalid value for SECP256K1_BENCH_ITERS c09215f7 bench: fail early if user inputs invalid value for SECP256K1_BENCH_ITERS 471e3a13 Merge bitcoin-core/secp256k1#1800: sage: verify Eisenstein integer connection for GLV constants 29ac4d84 sage: verify Eisenstein integer connection for GLV constants 4721e077 Merge bitcoin-core/secp256k1#1793: doc/bench: added help text for SECP256K1_BENCH_ITERS env var for bench_ecmult bd5ced1f doc/bench: added help text for SECP256K1_BENCH_ITERS env var for bench_ecmult 2d9137ce Merge bitcoin-core/secp256k1#1764: group: Avoid using infinity field directly in other modules f9a944ff Merge bitcoin-core/secp256k1#1790: doc: include arg -DSECP256K1_USE_EXTERNAL_DEFAULT_CALLBACKS=ON for cmake 0406cfc4 doc: include arg -DUSE_EXTERNAL_DEFAULT_CALLBACKS=1 for cmake 8d445730 Merge bitcoin-core/secp256k1#1783: Add VERIFY_CHECKs and documentation that flags must be 0 or 1 aa2a39c1 Merge bitcoin-core/secp256k1#1778: doc/bench: Added cmake build options to bench error messages 540fec8a Merge bitcoin-core/secp256k1#1788: test: split monolithic ellswift test into independent cases d822b290 test: split monolithic ellswift test into independent cases ae00c552 Add VERIFY_CHECKs that flags are 0 or 1 5c751833 Merge bitcoin-core/secp256k1#1784: refactor: remove ret from secp256k1_ec_pubkey_serialize be5e4f02 Merge bitcoin-core/secp256k1#1779: Add ARG_CHECKs to ensure "array of pointers" elements are non-NULL 3daab83a refactor: remove ret from secp256k1_ec_pubkey_serialize 8bcda186 test: Add non-NULL checks for "pointer of array" API functions 5a08c1bc Add ARG_CHECKs to ensure "array of pointers" elements are non-NULL 3b5b03f3 doc/bench: Added cmake build options to bench error messages e7f7083b Merge bitcoin-core/secp256k1#1774: refactor: split up internal pubkey serialization function into compressed/uncompressed variants b6c2a3cd Merge bitcoin-core/secp256k1#1761: ecmult_multi: reduce strauss memory usage by 30% f5e815f4 remove secp256k1_eckey_pubkey_serialize function 0d3659c5 use new `_eckey_pubkey_serialize{33,65}` functions in modules (ellswift,musig) adb76f82 use new `_eckey_pubkey_serialize{33,65}` functions in public API fc7458ca introduce `secp256k1_eckey_pubkey_serialize{33,65}` functions c8206b1c Merge bitcoin-core/secp256k1#1771: ci: Use Python virtual environment in "x86_64-macos-native" job f252da7e ci: Use Python virtual environment in "x86_64-macos-native" job 115b135f Merge bitcoin-core/secp256k1#1763: bench: Use `ALIGNMENT` macro instead of hardcoded value 2f73e528 group: Avoid using infinity field directly in other modules 153eea20 bench: Use `ALIGNMENT` macro instead of hardcoded value 26166c4f ecmult_multi: reduce strauss memory usage by 30% 7a2fff85 Merge bitcoin-core/secp256k1#1758: ci: Drop workaround for Valgrind older than 3.20.0 43e7b115 Merge bitcoin-core/secp256k1#1759: ci: Switch to macOS 15 Sequoia Intel-based image 8bc50b72 ci: Switch to macOS 15 Sequoia Intel-based image c09519f0 ci: Drop workaround for Valgrind older than 3.20.0 d543c0d9 Merge bitcoin-core/secp256k1#1734: Introduce (mini) unit test framework f44c1ebd Merge bitcoin-core/secp256k1#1719: ci: DRY workflow using anchors a44a3393 Merge bitcoin-core/secp256k1#1750: ci: Use clang-snapshot in "MSan" job 15d01480 ci: Drop default for `inputs.command` in `run-in-docker-action` 1decc49a ci: Use YAML anchor and aliases for repeated "CI script" steps dff1bc10 ci, refactor: Generalize use of `matrix.configuration.env_vars` 4b644da1 ci: Use YAML anchor and aliases for repeated "Print logs" steps a889cd93 ci: Bump `actions/checkout` version 574c2f30 ci: Use YAML anchor and aliases for repeated "Checkout" steps 53585f93 ci: Use clang-snapshot in "MSan" job 6894c964 Fix Clang 21+ `-Wuninitialized-const-pointer` warning when using MSan 2b7337f6 Merge bitcoin-core/secp256k1#1756: ci: Fix image caching and apply other improvements f163c358 ci: Set `DEBIAN_FRONTEND=noninteractive` 70ae177c ci: Bump `docker/build-push-action` version b2a95a42 ci: Drop `tags` input for `docker/build-push-action` 122014ed ci: Add `scope` parameter to `cache-{to,from}` options 2f4546ce test: add --log option to display tests execution 95b9953e test: Add option to display all available tests 953f7b00 test: support running specific tests/modules targets 0302c1a3 test: add --help for command-line options 9ec3bfe2 test: adapt modules to the new test infrastructure 48789daf test: introduce (mini) unit test framework baa26542 Merge bitcoin-core/secp256k1#1727: docs: Clarify that callback can be called more than once 4d90585f docs: Improve API docs of _context_set_illegal_callback 895f53d1 docs: Clarify that callback can be called more than once de6af6ae Merge bitcoin-core/secp256k1#1748: bench: improve context creation in ECDH benchmark 58178851 Merge bitcoin-core/secp256k1#1749: build: Fix warnings in x86_64 assembly check ab560078 build: Fix warnings in x86_64 assembly check 10dab907 Merge bitcoin-core/secp256k1#1741: doc: clarify API doc of `secp256k1_ecdsa_recover` return value dfe284ed bench: improve context creation in ECDH benchmark 7321bdf2 doc: clarify API doc of `secp256k1_ecdsa_recover` return value b4756543 Merge bitcoin-core/secp256k1#1745: test: introduce group order byte-array constant for deduplication 9cce7038 refactor: move 'gettime_i64()' to tests_common.h 0c91c560 test: introduce group order byte-array constant for deduplication 88be4e8d Merge bitcoin-core/secp256k1#1735: musig: Invalidate secnonce in secp256k1_musig_partial_sign 36e76952 Merge bitcoin-core/secp256k1#1738: check-abi: remove support for obsolete CMake library output location (src/libsecp256k1.so) 399b582a Split memclear into two versions 4985ac0f Merge bitcoin-core/secp256k1#1737: doc: mention ctx requirement for `_ellswift_create` (not secp256k1_context_static) 7ebaa134 check-abi: remove support for obsolete CMake library output location (src/libsecp256k1.so) 806de38b doc: mention ctx requirement for `_ellswift_create` (not secp256k1_context_static) 03fb60ad Merge bitcoin-core/secp256k1#1681: doc: Recommend clang-cl when building on Windows d93380fb Merge bitcoin-core/secp256k1#1731: schnorrsig: Securely clear buf containing k or its negation 8113671f Merge bitcoin-core/secp256k1#1729: hash: Use size_t instead of int for RFC6979 outlen copy 325d65a8 Rename and clear var containing k or -k 960ba5f9 Use size_t instead of int for RFC6979 outlen copy 73791243 ci: Add more tests for clang-cl 7379a5be doc: Recommend clang-cl when building on Windows f36afb8b Merge bitcoin-core/secp256k1#1725: tests: refactor tagged hash verification 5153cf1c tests: refactor tagged hash tests d2dcf520 Merge bitcoin-core/secp256k1#1726: docs: fix broken link to Tromer's cache.pdf paper 489a43d1 docs: fix broken link to eprint cache.pdf paper d5997141 Merge bitcoin-core/secp256k1#1722: docs: Exclude modules' `bench_impl.h` headers from coverage report 0458def5 doc: Add `--gcov-ignore-parse-errors=all` option to `gcovr` invocations 1aecce59 doc: Add `--merge-mode-functions=separate` option to `gcovr` invocations 106a7cbf doc: Exclude modules' `bench_impl.h` headers from coverage report a9e955d3 autotools, docs: Adjust help string for `--enable-coverage` option e523e4f9 Merge bitcoin-core/secp256k1#1720: chore(ci): Fix typo in Dockerfile comment 24ba8ff1 chore(ci): Fix typo in Dockerfile comment 74b8068c Merge bitcoin-core/secp256k1#1717: test: update wycheproof test vectors c25c3c8a test: update wycheproof test vectors 20e3b447 Merge bitcoin-core/secp256k1#1688: cmake: Avoid contaminating parent project's cache with `BUILD_SHARED_LIBS` 2c076d90 Merge bitcoin-core/secp256k1#1711: tests: update Wycheproof 7b07b229 cmake: Avoid contaminating parent project's cache with BUILD_SHARED_LIBS 5433648c Fix typos and spellings 9ea54c69 tests: update Wycheproof files b9313c6e Merge bitcoin-core/secp256k1#1708: release cleanup: bump version after 0.7.0 7ab8b0cc release cleanup: bump version after 0.7.0 git-subtree-dir: Vendor/secp256k1 git-subtree-split: 1a53f4961f337b4d166c25fce72ef0dc88806618
1 parent 9c34389 commit d54574b

1,793 files changed

Lines changed: 1935 additions & 828148 deletions

File tree

Some content is hidden

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

.dockerignore

Lines changed: 0 additions & 31 deletions
This file was deleted.

.gitattributes

Lines changed: 2 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,2 @@
1-
# Auto-detect text files and normalize line endings
2-
* text=auto
3-
4-
# Swift files
5-
*.swift text diff=swift
6-
7-
# C files (upstream library code)
8-
*.c text diff=c
9-
*.h text diff=c
10-
11-
# Upstream C library in Sources should be marked as vendored
12-
Sources/libsecp256k1/src/** linguist-vendored
13-
Sources/libsecp256k1/include/** linguist-vendored
14-
Sources/libsecp256k1_zkp/src/** linguist-vendored
15-
Sources/libsecp256k1_zkp/include/** linguist-vendored
16-
17-
# Custom utility files (not vendored)
18-
Sources/libsecp256k1/src/Utility.c linguist-vendored=false
19-
Sources/libsecp256k1/include/Utility.h linguist-vendored=false
20-
Sources/libsecp256k1_zkp/src/Utility.c linguist-vendored=false
21-
Sources/libsecp256k1_zkp/include/Utility.h linguist-vendored=false
22-
23-
# Vendor/development directories
24-
Vendor/** export-ignore linguist-vendored
25-
Projects/** export-ignore
26-
.build/** export-ignore
27-
.build_custom/** export-ignore
28-
.github/** export-ignore
29-
.vscode/** export-ignore
30-
.swiftpm/** export-ignore
31-
.specify/** export-ignore
32-
.windsurf/** export-ignore
33-
specs/** export-ignore
34-
35-
# CI/CD and tooling configs
36-
bitrise.yml export-ignore
37-
Dockerfile export-ignore
38-
lefthook.yml export-ignore
39-
subtree.yaml export-ignore
40-
.spi.yml export-ignore
41-
.swiftformat export-ignore
42-
.swiftlint.yml export-ignore
43-
44-
# Git and editor files
45-
.gitignore export-ignore
46-
.gitmodules export-ignore
47-
.DS_Store export-ignore
48-
49-
# Package lockfile (not needed for library consumers)
50-
Package.resolved export-ignore linguist-generated
51-
52-
# Community files
53-
CODE_OF_CONDUCT.md export-ignore
1+
src/precomputed_ecmult.c linguist-generated
2+
src/precomputed_ecmult_gen.c linguist-generated

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

Vendor/secp256k1/.github/actions/install-homebrew-valgrind/action.yml renamed to .github/actions/install-homebrew-valgrind/action.yml

File renamed without changes.
File renamed without changes.

Vendor/secp256k1/.github/actions/run-in-docker-action/action.yml renamed to .github/actions/run-in-docker-action/action.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,35 @@ inputs:
44
dockerfile:
55
description: 'A Dockerfile that defines an image'
66
required: true
7-
tag:
8-
description: 'A tag of an image'
9-
required: true
7+
scope:
8+
description: 'A cached image scope'
9+
required: false
10+
default: ${{ runner.arch }}
1011
command:
1112
description: 'A command to run in a container'
12-
required: false
13-
default: ./ci/ci.sh
13+
required: true
1414
runs:
1515
using: "composite"
1616
steps:
1717
- uses: docker/setup-buildx-action@v3
1818

19-
- uses: docker/build-push-action@v5
19+
- uses: docker/build-push-action@v6
2020
id: main_builder
2121
continue-on-error: true
2222
with:
2323
context: .
2424
file: ${{ inputs.dockerfile }}
25-
tags: ${{ inputs.tag }}
2625
load: true
27-
cache-from: type=gha
26+
cache-from: type=gha,scope=${{ inputs.scope }}
2827

29-
- uses: docker/build-push-action@v5
28+
- uses: docker/build-push-action@v6
3029
id: retry_builder
3130
if: steps.main_builder.outcome == 'failure'
3231
with:
3332
context: .
3433
file: ${{ inputs.dockerfile }}
35-
tags: ${{ inputs.tag }}
3634
load: true
37-
cache-from: type=gha
35+
cache-from: type=gha,scope=${{ inputs.scope }}
3836

3937
- # Workaround for https://github.com/google/sanitizers/issues/1614 .
4038
# The underlying issue has been fixed in clang 18.1.3.
@@ -47,7 +45,8 @@ runs:
4745
$(echo '${{ toJSON(env) }}' | jq -r 'keys[] | "--env \(.) "') \
4846
--volume ${{ github.workspace }}:${{ github.workspace }} \
4947
--workdir ${{ github.workspace }} \
50-
${{ inputs.tag }} bash -c "
48+
$(docker images -q | head -n1) \
49+
bash -c "
5150
git config --global --add safe.directory ${{ github.workspace }}
5251
${{ inputs.command }}
5352
"

.github/dependabot.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/apple-builds.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

.github/workflows/check-subtree-updates.yml

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)