-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update vendored libsecp to 0.3.2 #645
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
bebc7c0
gitignore: remove things that shouldn't be there
apoelstra 99d129a
lib: fix bad unit test
apoelstra 36339f2
delete `test_manual_create_destroy` test
apoelstra 1639f25
secp256k1-sys: update patchfiles for upcoming update to libsecp
apoelstra b8f7a16
secp256k1-sys: delete .orig files
apoelstra b09935d
secp256k1-sys: update vendored libsecp to v0.3.2 tag
apoelstra ac6d106
secp256k1-sys: bump version to 0.9.0 (but don't release yet)
apoelstra 186b643
ci: generalize grp in "illegal callback" test
apoelstra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,2 @@ | ||
target/ | ||
Cargo.lock | ||
|
||
#IntelliJ project files | ||
.idea | ||
*.iml | ||
|
||
CMakeLists.txt | ||
cmake-build-debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "secp256k1-sys" | ||
version = "0.8.1" | ||
version = "0.9.0" | ||
authors = [ "Dawid Ciężarkiewicz <[email protected]>", | ||
"Andrew Poelstra <[email protected]>", | ||
"Steven Roose <[email protected]>" ] | ||
|
@@ -12,7 +12,7 @@ description = "FFI for Pieter Wuille's `libsecp256k1` library." | |
keywords = [ "secp256k1", "libsecp256k1", "ffi" ] | ||
readme = "README.md" | ||
build = "build.rs" | ||
links = "rustsecp256k1_v0_8_1" | ||
links = "rustsecp256k1_v0_9_0" | ||
edition = "2018" | ||
|
||
[package.metadata.docs.rs] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# This file was automatically created by vendor-libsecp.sh | ||
21ffe4b22a9683cf24ae0763359e401d1284cc7a | ||
acf5c55ae6a94e5ca847e07def40427547876101 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
226,228d225 | ||
< SECP256K1_API secp256k1_context* secp256k1_context_create( | ||
279,281d278 | ||
< SECP256K1_API secp256k1_context *secp256k1_context_create( | ||
< unsigned int flags | ||
< ) SECP256K1_WARN_UNUSED_RESULT; | ||
231,233d227 | ||
< SECP256K1_API secp256k1_context* secp256k1_context_clone( | ||
< const secp256k1_context* ctx | ||
295,297d291 | ||
< SECP256K1_API secp256k1_context *secp256k1_context_clone( | ||
< const secp256k1_context *ctx | ||
< ) SECP256K1_ARG_NONNULL(1) SECP256K1_WARN_UNUSED_RESULT; | ||
248,250d241 | ||
313,315d306 | ||
< SECP256K1_API void secp256k1_context_destroy( | ||
< secp256k1_context* ctx | ||
< secp256k1_context *ctx | ||
< ) SECP256K1_ARG_NONNULL(1); | ||
327,330d317 | ||
< SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_scratch_space* secp256k1_scratch_space_create( | ||
< const secp256k1_context* ctx, | ||
395,398d385 | ||
< SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_scratch_space *secp256k1_scratch_space_create( | ||
< const secp256k1_context *ctx, | ||
< size_t size | ||
< ) SECP256K1_ARG_NONNULL(1); | ||
338,341d324 | ||
406,409d392 | ||
< SECP256K1_API void secp256k1_scratch_space_destroy( | ||
< const secp256k1_context* ctx, | ||
< secp256k1_scratch_space* scratch | ||
< const secp256k1_context *ctx, | ||
< secp256k1_scratch_space *scratch | ||
< ) SECP256K1_ARG_NONNULL(1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
env: | ||
### cirrus config | ||
CIRRUS_CLONE_DEPTH: 1 | ||
### compiler options | ||
HOST: | ||
WRAPPER_CMD: | ||
# Specific warnings can be disabled with -Wno-error=foo. | ||
# -pedantic-errors is not equivalent to -Werror=pedantic and thus not implied by -Werror according to the GCC manual. | ||
WERROR_CFLAGS: -Werror -pedantic-errors | ||
|
@@ -22,7 +25,7 @@ env: | |
SECP256K1_TEST_ITERS: | ||
BENCH: yes | ||
SECP256K1_BENCH_ITERS: 2 | ||
CTIMETEST: yes | ||
CTIMETESTS: yes | ||
# Compile and run the tests | ||
EXAMPLES: yes | ||
|
||
|
@@ -35,10 +38,12 @@ cat_logs_snippet: &CAT_LOGS | |
always: | ||
cat_tests_log_script: | ||
- cat tests.log || true | ||
cat_noverify_tests_log_script: | ||
- cat noverify_tests.log || true | ||
cat_exhaustive_tests_log_script: | ||
- cat exhaustive_tests.log || true | ||
cat_valgrind_ctime_test_log_script: | ||
- cat valgrind_ctime_test.log || true | ||
cat_ctime_tests_log_script: | ||
- cat ctime_tests.log || true | ||
cat_bench_log_script: | ||
- cat bench.log || true | ||
cat_config_log_script: | ||
|
@@ -51,10 +56,8 @@ cat_logs_snippet: &CAT_LOGS | |
merge_base_script_snippet: &MERGE_BASE | ||
merge_base_script: | ||
- if [ "$CIRRUS_PR" = "" ]; then exit 0; fi | ||
- git fetch $CIRRUS_REPO_CLONE_URL $CIRRUS_BASE_BRANCH | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "ci" | ||
- git merge FETCH_HEAD # Merge base to detect silent merge conflicts | ||
- git fetch --depth=1 $CIRRUS_REPO_CLONE_URL "pull/${CIRRUS_PR}/merge" | ||
- git checkout FETCH_HEAD # Use merged changes to detect silent merge conflicts | ||
|
||
linux_container_snippet: &LINUX_CONTAINER | ||
container: | ||
|
@@ -78,9 +81,10 @@ task: | |
- env: {WIDEMUL: int128, ECDH: yes, SCHNORRSIG: yes} | ||
- env: {WIDEMUL: int128, ASM: x86_64} | ||
- env: { RECOVERY: yes, SCHNORRSIG: yes} | ||
- env: {BUILD: distcheck, WITH_VALGRIND: no, CTIMETEST: no, BENCH: no} | ||
- env: {CTIMETESTS: no, RECOVERY: yes, ECDH: yes, SCHNORRSIG: yes, CPPFLAGS: -DVERIFY} | ||
- env: {BUILD: distcheck, WITH_VALGRIND: no, CTIMETESTS: no, BENCH: no} | ||
- env: {CPPFLAGS: -DDETERMINISTIC} | ||
- env: {CFLAGS: -O0, CTIMETEST: no} | ||
- env: {CFLAGS: -O0, CTIMETESTS: no} | ||
- env: { ECMULTGENPRECISION: 2, ECMULTWINDOW: 2 } | ||
- env: { ECMULTGENPRECISION: 8, ECMULTWINDOW: 4 } | ||
matrix: | ||
|
@@ -125,7 +129,7 @@ task: | |
env: | ||
ASM: no | ||
WITH_VALGRIND: no | ||
CTIMETEST: no | ||
CTIMETESTS: no | ||
matrix: | ||
- env: | ||
CC: gcc | ||
|
@@ -150,7 +154,7 @@ task: | |
ECDH: yes | ||
RECOVERY: yes | ||
SCHNORRSIG: yes | ||
CTIMETEST: no | ||
CTIMETESTS: no | ||
<< : *MERGE_BASE | ||
test_script: | ||
# https://sourceware.org/bugzilla/show_bug.cgi?id=27008 | ||
|
@@ -169,10 +173,10 @@ task: | |
ECDH: yes | ||
RECOVERY: yes | ||
SCHNORRSIG: yes | ||
CTIMETEST: no | ||
CTIMETESTS: no | ||
matrix: | ||
- env: {} | ||
- env: {EXPERIMENTAL: yes, ASM: arm} | ||
- env: {EXPERIMENTAL: yes, ASM: arm32} | ||
<< : *MERGE_BASE | ||
test_script: | ||
- ./ci/cirrus.sh | ||
|
@@ -189,7 +193,7 @@ task: | |
ECDH: yes | ||
RECOVERY: yes | ||
SCHNORRSIG: yes | ||
CTIMETEST: no | ||
CTIMETESTS: no | ||
<< : *MERGE_BASE | ||
test_script: | ||
- ./ci/cirrus.sh | ||
|
@@ -206,7 +210,7 @@ task: | |
ECDH: yes | ||
RECOVERY: yes | ||
SCHNORRSIG: yes | ||
CTIMETEST: no | ||
CTIMETESTS: no | ||
<< : *MERGE_BASE | ||
test_script: | ||
- ./ci/cirrus.sh | ||
|
@@ -220,7 +224,7 @@ task: | |
ECDH: yes | ||
RECOVERY: yes | ||
SCHNORRSIG: yes | ||
CTIMETEST: no | ||
CTIMETESTS: no | ||
matrix: | ||
- name: "x86_64 (mingw32-w64): Windows (Debian stable, Wine)" | ||
env: | ||
|
@@ -243,7 +247,7 @@ task: | |
RECOVERY: yes | ||
EXPERIMENTAL: yes | ||
SCHNORRSIG: yes | ||
CTIMETEST: no | ||
CTIMETESTS: no | ||
# Use a MinGW-w64 host to tell ./configure we're building for Windows. | ||
# This will detect some MinGW-w64 tools but then make will need only | ||
# the MSVC tools CC, AR and NM as specified below. | ||
|
@@ -254,7 +258,7 @@ task: | |
# Set non-essential options that affect the CLI messages here. | ||
# (They depend on the user's taste, so we don't want to set them automatically in configure.ac.) | ||
CFLAGS: -nologo -diagnostics:caret | ||
LDFLAGS: -XCClinker -nologo -XCClinker -diagnostics:caret | ||
LDFLAGS: -Xlinker -Xlinker -Xlinker -nologo | ||
matrix: | ||
- name: "x86_64 (MSVC): Windows (Debian stable, Wine)" | ||
- name: "x86_64 (MSVC): Windows (Debian stable, Wine, int128_struct)" | ||
|
@@ -282,7 +286,7 @@ task: | |
ECDH: yes | ||
RECOVERY: yes | ||
SCHNORRSIG: yes | ||
CTIMETEST: no | ||
CTIMETESTS: no | ||
matrix: | ||
- name: "Valgrind (memcheck)" | ||
container: | ||
|
@@ -327,10 +331,11 @@ task: | |
ECDH: yes | ||
RECOVERY: yes | ||
SCHNORRSIG: yes | ||
CTIMETEST: no | ||
CTIMETESTS: yes | ||
CC: clang | ||
SECP256K1_TEST_ITERS: 32 | ||
ASM: no | ||
WITH_VALGRIND: no | ||
container: | ||
memory: 2G | ||
matrix: | ||
|
@@ -375,3 +380,30 @@ task: | |
test_script: | ||
- cd sage | ||
- sage prove_group_implementations.sage | ||
|
||
task: | ||
name: "x86_64: Windows (VS 2022)" | ||
windows_container: | ||
image: cirrusci/windowsservercore:visualstudio2022 | ||
cpu: 4 | ||
memory: 3840MB | ||
env: | ||
PATH: '%CIRRUS_WORKING_DIR%\build\src\RelWithDebInfo;%PATH%' | ||
x64_NATIVE_TOOLS: '"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"' | ||
# Ignore MSBuild warning MSB8029. | ||
# See: https://learn.microsoft.com/en-us/visualstudio/msbuild/errors/msb8029?view=vs-2022 | ||
IgnoreWarnIntDirInTempDetected: 'true' | ||
merge_script: | ||
- PowerShell -NoLogo -Command if ($env:CIRRUS_PR -ne $null) { git fetch $env:CIRRUS_REPO_CLONE_URL pull/$env:CIRRUS_PR/merge; git reset --hard FETCH_HEAD; } | ||
configure_script: | ||
- '%x64_NATIVE_TOOLS%' | ||
- cmake -E env CFLAGS="/WX" cmake -G "Visual Studio 17 2022" -A x64 -S . -B build -DSECP256K1_ENABLE_MODULE_RECOVERY=ON -DSECP256K1_BUILD_EXAMPLES=ON | ||
build_script: | ||
- '%x64_NATIVE_TOOLS%' | ||
- cmake --build build --config RelWithDebInfo -- -property:UseMultiToolTask=true;CL_MPcount=5 | ||
check_script: | ||
- '%x64_NATIVE_TOOLS%' | ||
- ctest -C RelWithDebInfo --test-dir build -j 5 | ||
- build\src\RelWithDebInfo\bench_ecmult.exe | ||
- build\src\RelWithDebInfo\bench_internal.exe | ||
- build\src\RelWithDebInfo\bench.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this change? It works still, right? You just don't like the grep statement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the assertion has changed in the latest version of libsecp.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, cool. Thanks.