forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'src/secp256k1/' changes from efe85c70a2..282757398c
282757398c WIP: Silent merge conflicts 42dc5a9494 batch: Generate graphs for batch verification speed up fd9f58842f batch, extrakeys: Add benchmark for batch verify and `tweak_add_check` 94df19cd26 batch: Add tests for `batch_add_*` APIs 32d3f93683 batch,ecmult: Add tests for core batch APIs and `strauss_batch` refactor 30d5b37526 batch: Add API usage example 014c1501e2 batch: Add `batch_add_*` APIs 57f1c10a48 batch, ecmult: Add `batch_verify` API and refactor `strauss_batch` 871ade3aac batch: Add `create` and `destroy` APIs 960b6dafa4 batch: Initialize an experimental batch module 0653a25d50 Merge bitcoin-core/secp256k1#1486: ci: Update cache action 94a14d5290 ci: Update cache action 2483627299 Merge bitcoin-core/secp256k1#1483: cmake: Recommend native CMake commands in README 5ad3aa3dcd Merge bitcoin-core/secp256k1#1484: tests: Drop redundant _scalar_check_overflow calls 51df2d9ab3 tests: Drop redundant _scalar_check_overflow calls 3777e3f36a cmake: Recommend native CMake commands in README e4af41c61b Merge bitcoin-core/secp256k1#1249: cmake: Add `SECP256K1_LATE_CFLAGS` configure option 3bf4d68fc0 Merge bitcoin-core/secp256k1#1482: build: Clean up handling of module dependencies e6822678ea build: Error if required module explicitly off 89ec583ccf build: Clean up handling of module dependencies 44378867a0 Merge bitcoin-core/secp256k1#1468: v0.4.1 release aftermath a9db9f2d75 Merge bitcoin-core/secp256k1#1480: Get rid of untested sizeof(secp256k1_ge_storage) == 64 code path 74b7c3b53e Merge bitcoin-core/secp256k1#1476: include: make docs more consistent b37fdb28ce check-abi: Minor UI improvements ad5f589a94 check-abi: Default to HEAD for new version 9fb7e2f156 release process: Style and formatting nits ba5d72d626 assumptions: Use new STATIC_ASSERT macro e53c2d9ffc Require that sizeof(secp256k1_ge_storage) == 64 d0ba2abbff util: Add STATIC_ASSERT macro da7bc1b803 include: in doc, remove article in front of "pointer" aa3dd5280b include: make doc about ctx more consistent e3f690015a include: remove obvious "cannot be NULL" doc d373bf6d08 Merge bitcoin-core/secp256k1#1474: tests: restore scalar_mul test 79e094517c Merge bitcoin-core/secp256k1#1473: Fix typos 3dbfb48946 tests: restore scalar_mul test d77170a88d Fix typos e7053d065b release process: Add email step 429d21dc79 release process: Run sanity checks on release PR 42f8c51402 cmake: Add `SECP256K1_LATE_CFLAGS` configure option git-subtree-dir: src/secp256k1 git-subtree-split: 282757398c85c747addee74c5e410ab0b050f4ac
- Loading branch information
Showing
52 changed files
with
2,847 additions
and
287 deletions.
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
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 |
---|---|---|
|
@@ -10,6 +10,7 @@ ctime_tests | |
ecdh_example | ||
ecdsa_example | ||
schnorr_example | ||
batch_example | ||
*.exe | ||
*.so | ||
*.a | ||
|
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
set -x | ||
|
||
export LC_ALL=C | ||
|
||
# Start persistent wineserver if necessary. | ||
# This speeds up jobs with many invocations of wine (e.g., ./configure with MSVC) tremendously. | ||
case "$WRAPPER_CMD" in | ||
*wine*) | ||
# This is apparently only reliable when we run a dummy command such as "hh.exe" afterwards. | ||
wineserver -p && wine hh.exe | ||
;; | ||
esac | ||
|
||
env >> test_env.log | ||
|
||
$CC -v || true | ||
valgrind --version || true | ||
$WRAPPER_CMD --version || true | ||
|
||
./autogen.sh | ||
|
||
./configure \ | ||
--enable-experimental="$EXPERIMENTAL" \ | ||
--with-test-override-wide-multiply="$WIDEMUL" --with-asm="$ASM" \ | ||
--with-ecmult-window="$ECMULTWINDOW" \ | ||
--with-ecmult-gen-precision="$ECMULTGENPRECISION" \ | ||
--enable-module-ecdh="$ECDH" --enable-module-recovery="$RECOVERY" \ | ||
--enable-module-schnorrsig="$SCHNORRSIG" \ | ||
--enable-module-batch="$BATCH" \ | ||
--enable-examples="$EXAMPLES" \ | ||
--with-valgrind="$WITH_VALGRIND" \ | ||
--host="$HOST" $EXTRAFLAGS | ||
|
||
# We have set "-j<n>" in MAKEFLAGS. | ||
make | ||
|
||
# Print information about binaries so that we can see that the architecture is correct | ||
file *tests* || true | ||
file bench* || true | ||
file .libs/* || true | ||
|
||
# This tells `make check` to wrap test invocations. | ||
export LOG_COMPILER="$WRAPPER_CMD" | ||
|
||
make "$BUILD" | ||
|
||
if [ "$BENCH" = "yes" ] | ||
then | ||
# Using the local `libtool` because on macOS the system's libtool has nothing to do with GNU libtool | ||
EXEC='./libtool --mode=execute' | ||
if [ -n "$WRAPPER_CMD" ] | ||
then | ||
EXEC="$EXEC $WRAPPER_CMD" | ||
fi | ||
{ | ||
$EXEC ./bench_ecmult | ||
$EXEC ./bench_internal | ||
$EXEC ./bench | ||
} >> bench.log 2>&1 | ||
fi | ||
|
||
if [ "$CTIMETEST" = "yes" ] | ||
then | ||
./libtool --mode=execute valgrind --error-exitcode=42 ./valgrind_ctime_test > valgrind_ctime_test.log 2>&1 | ||
fi | ||
|
||
# Rebuild precomputed files (if not cross-compiling). | ||
if [ -z "$HOST" ] | ||
then | ||
make clean-precomp | ||
make precomp | ||
fi | ||
|
||
# Shutdown wineserver again | ||
wineserver -k || true | ||
|
||
# Check that no repo files have been modified by the build. | ||
# (This fails for example if the precomp files need to be updated in the repo.) | ||
git diff --exit-code |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Add compile options to all targets added in the subdirectory. | ||
function(all_targets_compile_options dir options) | ||
get_directory_property(targets DIRECTORY ${dir} BUILDSYSTEM_TARGETS) | ||
separate_arguments(options) | ||
set(compiled_target_types STATIC_LIBRARY SHARED_LIBRARY OBJECT_LIBRARY EXECUTABLE) | ||
foreach(target ${targets}) | ||
get_target_property(type ${target} TYPE) | ||
if(type IN_LIST compiled_target_types) | ||
target_compile_options(${target} PRIVATE ${options}) | ||
endif() | ||
endforeach() | ||
endfunction() |
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
Oops, something went wrong.