Skip to content

Commit a3bf0ad

Browse files
committed
secp256k1-sys: Bump version number
We just bumped the MSRV and need to do a major release to maintain semver compliance. Bump the version number by re-running the vendor script using the same revision of `secp256k1` that we currently vendor. ``` SECP_VENDOR_VERSION_CODE=0_10_0 \ SECP_VENDOR_SECP_REPO=/path-to/github.com/bitcoin-core/secp256k1 \ SECP_VENDOR_CP_NOT_CLONE=yes \ ./vendor-libsecp.sh ``` (After first checking out the previous that is currently in `secp256k1-HEAD-revision.txt`.) Bump the crate version number, and depend on the new version in `rust-secp256k1`.
1 parent 58453ef commit a3bf0ad

File tree

119 files changed

+9719
-6785
lines changed

Some content is hidden

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

119 files changed

+9719
-6785
lines changed

Cargo-minimal.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ dependencies = [
273273

274274
[[package]]
275275
name = "secp256k1-sys"
276-
version = "0.9.2"
276+
version = "0.10.0"
277277
dependencies = [
278278
"cc",
279279
"libc",

Cargo-recent.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ dependencies = [
194194

195195
[[package]]
196196
name = "secp256k1-sys"
197-
version = "0.9.2"
197+
version = "0.10.0"
198198
dependencies = [
199199
"cc",
200200
"libc",

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ global-context = ["std"]
3636
global-context-less-secure = ["global-context"]
3737

3838
[dependencies]
39-
secp256k1-sys = { version = "0.9.2", default-features = false, path = "./secp256k1-sys" }
39+
secp256k1-sys = { version = "0.10.0", default-features = false, path = "./secp256k1-sys" }
4040
serde = { version = "1.0.103", default-features = false, optional = true }
4141

4242
# You likely only want to enable these if you explicitly do not want to use "std", otherwise enable

secp256k1-sys/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "secp256k1-sys"
3-
version = "0.9.2"
3+
version = "0.10.0"
44
authors = [ "Dawid Ciężarkiewicz <[email protected]>",
55
"Andrew Poelstra <[email protected]>",
66
"Steven Roose <[email protected]>" ]
@@ -12,7 +12,7 @@ description = "FFI for Pieter Wuille's `libsecp256k1` library."
1212
keywords = [ "secp256k1", "libsecp256k1", "ffi" ]
1313
readme = "README.md"
1414
build = "build.rs"
15-
links = "rustsecp256k1_v0_9_2"
15+
links = "rustsecp256k1_v0_10_0"
1616
edition = "2021"
1717
rust-version = "1.56.1"
1818

secp256k1-sys/depend/secp256k1/Makefile.am

+17-17
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ AM_CFLAGS = $(SECP_CFLAGS)
66

77
lib_LTLIBRARIES = libsecp256k1.la
88
include_HEADERS = include/secp256k1.h
9-
include_HEADERS += include/rustsecp256k1_v0_9_2_preallocated.h
9+
include_HEADERS += include/rustsecp256k1_v0_10_0_preallocated.h
1010
noinst_HEADERS =
1111
noinst_HEADERS += src/scalar.h
1212
noinst_HEADERS += src/scalar_4x64.h
@@ -63,22 +63,22 @@ noinst_HEADERS += src/hash_impl.h
6363
noinst_HEADERS += src/field.h
6464
noinst_HEADERS += src/field_impl.h
6565
noinst_HEADERS += src/bench.h
66-
noinst_HEADERS += src/wycheproof/ecdsa_rustsecp256k1_v0_9_2_sha256_bitcoin_test.h
66+
noinst_HEADERS += src/wycheproof/ecdsa_rustsecp256k1_v0_10_0_sha256_bitcoin_test.h
6767
noinst_HEADERS += contrib/lax_der_parsing.h
6868
noinst_HEADERS += contrib/lax_der_parsing.c
6969
noinst_HEADERS += contrib/lax_der_privatekey_parsing.h
7070
noinst_HEADERS += contrib/lax_der_privatekey_parsing.c
7171
noinst_HEADERS += examples/examples_util.h
7272

73-
PRECOMPUTED_LIB = librustsecp256k1_v0_9_2_precomputed.la
73+
PRECOMPUTED_LIB = librustsecp256k1_v0_10_0_precomputed.la
7474
noinst_LTLIBRARIES = $(PRECOMPUTED_LIB)
75-
librustsecp256k1_v0_9_2_precomputed_la_SOURCES = src/precomputed_ecmult.c src/precomputed_ecmult_gen.c
76-
# We need `-I$(top_srcdir)/src` in VPATH builds if librustsecp256k1_v0_9_2_precomputed_la_SOURCES have been recreated in the build tree.
75+
librustsecp256k1_v0_10_0_precomputed_la_SOURCES = src/precomputed_ecmult.c src/precomputed_ecmult_gen.c
76+
# We need `-I$(top_srcdir)/src` in VPATH builds if librustsecp256k1_v0_10_0_precomputed_la_SOURCES have been recreated in the build tree.
7777
# This helps users and packagers who insist on recreating the precomputed files (e.g., Gentoo).
78-
librustsecp256k1_v0_9_2_precomputed_la_CPPFLAGS = -I$(top_srcdir)/src $(SECP_CONFIG_DEFINES)
78+
librustsecp256k1_v0_10_0_precomputed_la_CPPFLAGS = -I$(top_srcdir)/src $(SECP_CONFIG_DEFINES)
7979

8080
if USE_EXTERNAL_ASM
81-
COMMON_LIB = librustsecp256k1_v0_9_2_common.la
81+
COMMON_LIB = librustsecp256k1_v0_10_0_common.la
8282
else
8383
COMMON_LIB =
8484
endif
@@ -89,14 +89,14 @@ pkgconfig_DATA = libsecp256k1.pc
8989

9090
if USE_EXTERNAL_ASM
9191
if USE_ASM_ARM
92-
librustsecp256k1_v0_9_2_common_la_SOURCES = src/asm/field_10x26_arm.s
92+
librustsecp256k1_v0_10_0_common_la_SOURCES = src/asm/field_10x26_arm.s
9393
endif
9494
endif
9595

96-
librustsecp256k1_v0_9_2_la_SOURCES = src/secp256k1.c
97-
librustsecp256k1_v0_9_2_la_CPPFLAGS = $(SECP_CONFIG_DEFINES)
98-
librustsecp256k1_v0_9_2_la_LIBADD = $(COMMON_LIB) $(PRECOMPUTED_LIB)
99-
librustsecp256k1_v0_9_2_la_LDFLAGS = -no-undefined -version-info $(LIB_VERSION_CURRENT):$(LIB_VERSION_REVISION):$(LIB_VERSION_AGE)
96+
librustsecp256k1_v0_10_0_la_SOURCES = src/secp256k1.c
97+
librustsecp256k1_v0_10_0_la_CPPFLAGS = $(SECP_CONFIG_DEFINES)
98+
librustsecp256k1_v0_10_0_la_LIBADD = $(COMMON_LIB) $(PRECOMPUTED_LIB)
99+
librustsecp256k1_v0_10_0_la_LDFLAGS = -no-undefined -version-info $(LIB_VERSION_CURRENT):$(LIB_VERSION_REVISION):$(LIB_VERSION_AGE)
100100

101101
noinst_PROGRAMS =
102102
if USE_BENCHMARK
@@ -223,11 +223,11 @@ maintainer-clean-local: clean-precomp
223223

224224
### Pregenerated test vectors
225225
### (see the comments in the previous section for detailed rationale)
226-
TESTVECTORS = src/wycheproof/ecdsa_rustsecp256k1_v0_9_2_sha256_bitcoin_test.h
226+
TESTVECTORS = src/wycheproof/ecdsa_rustsecp256k1_v0_10_0_sha256_bitcoin_test.h
227227

228-
src/wycheproof/ecdsa_rustsecp256k1_v0_9_2_sha256_bitcoin_test.h:
228+
src/wycheproof/ecdsa_rustsecp256k1_v0_10_0_sha256_bitcoin_test.h:
229229
mkdir -p $(@D)
230-
python3 $(top_srcdir)/tools/tests_wycheproof_generate.py $(top_srcdir)/src/wycheproof/ecdsa_rustsecp256k1_v0_9_2_sha256_bitcoin_test.json > $@
230+
python3 $(top_srcdir)/tools/tests_wycheproof_generate.py $(top_srcdir)/src/wycheproof/ecdsa_rustsecp256k1_v0_10_0_sha256_bitcoin_test.json > $@
231231

232232
testvectors: $(TESTVECTORS)
233233

@@ -246,10 +246,10 @@ EXTRA_DIST += sage/gen_exhaustive_groups.sage
246246
EXTRA_DIST += sage/gen_split_lambda_constants.sage
247247
EXTRA_DIST += sage/group_prover.sage
248248
EXTRA_DIST += sage/prove_group_implementations.sage
249-
EXTRA_DIST += sage/rustsecp256k1_v0_9_2_params.sage
249+
EXTRA_DIST += sage/rustsecp256k1_v0_10_0_params.sage
250250
EXTRA_DIST += sage/weierstrass_prover.sage
251251
EXTRA_DIST += src/wycheproof/WYCHEPROOF_COPYING
252-
EXTRA_DIST += src/wycheproof/ecdsa_rustsecp256k1_v0_9_2_sha256_bitcoin_test.json
252+
EXTRA_DIST += src/wycheproof/ecdsa_rustsecp256k1_v0_10_0_sha256_bitcoin_test.json
253253
EXTRA_DIST += tools/tests_wycheproof_generate.py
254254

255255
if ENABLE_MODULE_ECDH

0 commit comments

Comments
 (0)