Skip to content

Commit 0cdc758

Browse files
committed
Merge bitcoin-core#1631: release: prepare for 0.6.0
39d5dfd release: prepare for 0.6.0 (Jonas Nick) df2eceb build: add ellswift.md and musig.md to release tarball (Jonas Nick) a306bb7 tools: fix check-abi.sh after cmake out locations were changed (Jonas Nick) 145868a Do not export `secp256k1_musig_nonce_gen_internal` (Hennadii Stepanov) Pull request description: ACKs for top commit: sipa: utACK 39d5dfd real-or-random: ACK 39d5dfd mod the CI results Tree-SHA512: 9b4623ca03aafcd1e04b0809382faeb3b427d3d07062f065177c7608e4feb30abd52cb10fa8c06b7ae17a82b32455e995b6bd39e3ef6239d5fc65c78873385b0
2 parents b161bff + 39d5dfd commit 0cdc758

File tree

6 files changed

+33
-15
lines changed

6 files changed

+33
-15
lines changed

CHANGELOG.md

+13-3
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,26 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
## [0.6.0] - 2024-11-04
99

1010
#### Added
1111
- New module `musig` implements the MuSig2 multisignature scheme according to the [BIP 327 specification](https://github.com/bitcoin/bips/blob/master/bip-0327.mediawiki). See:
1212
- Header file `include/secp256k1_musig.h` which defines the new API.
1313
- Document `doc/musig.md` for further notes on API usage.
1414
- Usage example `examples/musig.c`.
15+
- New CMake variable `SECP256K1_APPEND_LDFLAGS` for appending linker flags to the build command.
16+
17+
#### Changed
18+
- API functions now use a significantly more robust method to clear secrets from the stack before returning. However, secret clearing remains a best-effort security measure and cannot guarantee complete removal.
19+
- Any type `secp256k1_foo` can now be forward-declared using `typedef struct secp256k1_foo secp256k1_foo;` (or also `struct secp256k1_foo;` in C++).
20+
- Organized CMake build artifacts into dedicated directories (`bin/` for executables, `lib/` for libraries) to improve build output structure and Windows shared library compatibility.
1521

1622
#### Removed
17-
- Removed the `secp256k1_scratch_space` struct and its associated functions `secp256k1_scratch_space_create` `secp256k1_scratch_space_destroy` because the scratch space was unused in the API.
23+
- Removed the `secp256k1_scratch_space` struct and its associated functions `secp256k1_scratch_space_create` and `secp256k1_scratch_space_destroy` because the scratch space was unused in the API.
24+
25+
#### ABI Compatibility
26+
The symbols `secp256k1_scratch_space_create` and `secp256k1_scratch_space_destroy` were removed.
27+
Otherwise, the library maintains backward compatibility with versions 0.3.x through 0.5.x.
1828

1929
## [0.5.1] - 2024-08-01
2030

@@ -152,7 +162,7 @@ This version was in fact never released.
152162
The number was given by the build system since the introduction of autotools in Jan 2014 (ea0fe5a5bf0c04f9cc955b2966b614f5f378c6f6).
153163
Therefore, this version number does not uniquely identify a set of source files.
154164

155-
[unreleased]: https://github.com/bitcoin-core/secp256k1/compare/v0.5.1...HEAD
165+
[0.6.0]: https://github.com/bitcoin-core/secp256k1/compare/v0.5.1...v0.6.0
156166
[0.5.1]: https://github.com/bitcoin-core/secp256k1/compare/v0.5.0...v0.5.1
157167
[0.5.0]: https://github.com/bitcoin-core/secp256k1/compare/v0.4.1...v0.5.0
158168
[0.4.1]: https://github.com/bitcoin-core/secp256k1/compare/v0.4.0...v0.4.1

CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project(libsecp256k1
77
# The package (a.k.a. release) version is based on semantic versioning 2.0.0 of
88
# the API. All changes in experimental modules are treated as
99
# backwards-compatible and therefore at most increase the minor version.
10-
VERSION 0.5.2
10+
VERSION 0.6.0
1111
DESCRIPTION "Optimized C library for ECDSA signatures and secret/public key operations on curve secp256k1."
1212
HOMEPAGE_URL "https://github.com/bitcoin-core/secp256k1"
1313
LANGUAGES C
@@ -31,9 +31,9 @@ endif()
3131
# https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
3232
# All changes in experimental modules are treated as if they don't affect the
3333
# interface and therefore only increase the revision.
34-
set(${PROJECT_NAME}_LIB_VERSION_CURRENT 4)
35-
set(${PROJECT_NAME}_LIB_VERSION_REVISION 2)
36-
set(${PROJECT_NAME}_LIB_VERSION_AGE 2)
34+
set(${PROJECT_NAME}_LIB_VERSION_CURRENT 5)
35+
set(${PROJECT_NAME}_LIB_VERSION_REVISION 0)
36+
set(${PROJECT_NAME}_LIB_VERSION_AGE 0)
3737

3838
#=============================
3939
# Language setup

Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ maintainer-clean-local: clean-testvectors
265265
### Additional files to distribute
266266
EXTRA_DIST = autogen.sh CHANGELOG.md SECURITY.md
267267
EXTRA_DIST += doc/release-process.md doc/safegcd_implementation.md
268+
EXTRA_DIST += doc/ellswift.md doc/musig.md
268269
EXTRA_DIST += examples/EXAMPLES_COPYING
269270
EXTRA_DIST += sage/gen_exhaustive_groups.sage
270271
EXTRA_DIST += sage/gen_split_lambda_constants.sage

configure.ac

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ AC_PREREQ([2.60])
44
# the API. All changes in experimental modules are treated as
55
# backwards-compatible and therefore at most increase the minor version.
66
define(_PKG_VERSION_MAJOR, 0)
7-
define(_PKG_VERSION_MINOR, 5)
8-
define(_PKG_VERSION_PATCH, 2)
9-
define(_PKG_VERSION_IS_RELEASE, false)
7+
define(_PKG_VERSION_MINOR, 6)
8+
define(_PKG_VERSION_PATCH, 0)
9+
define(_PKG_VERSION_IS_RELEASE, true)
1010

1111
# The library version is based on libtool versioning of the ABI. The set of
1212
# rules for updating the version can be found here:
1313
# https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
1414
# All changes in experimental modules are treated as if they don't affect the
1515
# interface and therefore only increase the revision.
16-
define(_LIB_VERSION_CURRENT, 4)
17-
define(_LIB_VERSION_REVISION, 2)
18-
define(_LIB_VERSION_AGE, 2)
16+
define(_LIB_VERSION_CURRENT, 5)
17+
define(_LIB_VERSION_REVISION, 0)
18+
define(_LIB_VERSION_AGE, 0)
1919

2020
AC_INIT([libsecp256k1],m4_join([.], _PKG_VERSION_MAJOR, _PKG_VERSION_MINOR, _PKG_VERSION_PATCH)m4_if(_PKG_VERSION_IS_RELEASE, [true], [], [-dev]),[https://github.com/bitcoin-core/secp256k1/issues],[libsecp256k1],[https://github.com/bitcoin-core/secp256k1])
2121

src/modules/musig/session_impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ static void secp256k1_nonce_function_musig(secp256k1_scalar *k, const unsigned c
392392
secp256k1_sha256_clear(&sha);
393393
}
394394

395-
int secp256k1_musig_nonce_gen_internal(const secp256k1_context* ctx, secp256k1_musig_secnonce *secnonce, secp256k1_musig_pubnonce *pubnonce, const unsigned char *input_nonce, const unsigned char *seckey, const secp256k1_pubkey *pubkey, const unsigned char *msg32, const secp256k1_musig_keyagg_cache *keyagg_cache, const unsigned char *extra_input32) {
395+
static int secp256k1_musig_nonce_gen_internal(const secp256k1_context* ctx, secp256k1_musig_secnonce *secnonce, secp256k1_musig_pubnonce *pubnonce, const unsigned char *input_nonce, const unsigned char *seckey, const secp256k1_pubkey *pubkey, const unsigned char *msg32, const secp256k1_musig_keyagg_cache *keyagg_cache, const unsigned char *extra_input32) {
396396
secp256k1_scalar k[2];
397397
secp256k1_ge nonce_pts[2];
398398
int i;

tools/check-abi.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@ checkout_and_build() {
4949
-DSECP256K1_BUILD_CTIME_TESTS=OFF \
5050
-DSECP256K1_BUILD_EXAMPLES=OFF
5151
cmake --build . -j "$(nproc)"
52-
abi-dumper src/libsecp256k1.so -o ABI.dump -lver "$2" -public-headers ../include/
52+
# FIXME: Just set LIBPATH to lib/libsecp256k1.so once version 0.6.0 is
53+
# released.
54+
if [ -f "src/libsecp256k1.so" ]; then
55+
LIBPATH="src/libsecp256k1.so"
56+
else
57+
LIBPATH="lib/libsecp256k1.so"
58+
fi
59+
abi-dumper $LIBPATH -o ABI.dump -lver "$2" -public-headers ../include/
5360
cd "$_orig_dir"
5461
}
5562

0 commit comments

Comments
 (0)