Skip to content

Commit 1fe1f43

Browse files
trevor-cryptobkchr
authored andcommitted
RUSTSEC-2021-0076 bump libsecp256k1 (paritytech#9391)
* RUSTSEC-2021-0076 bump libsecp256k1 libsecp256k1 allows overflowing signatures https://rustsec.org/advisories/RUSTSEC-2021-0076 Changes were made to conform to libsecp256k1 version differences. Closes paritytech#9356 * parse_standard_slice() -> parse_overflowing_slice() * Added v2 host function for ecdsa_verify * Add feature tag over helpers * Added ecdsa_verify v2 to test runner * PR feedback - Spaces -> tabs - renamed two helper functions * Fixed imports after rebasing * Bump rest of libsecp256k1 * Add version2 for ecdsa pubkey recovery * Update primitives/core/src/ecdsa.rs * Update primitives/core/src/ecdsa.rs * Update Cargo.lock Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
1 parent c3dfee6 commit 1fe1f43

File tree

7 files changed

+297
-48
lines changed

7 files changed

+297
-48
lines changed

Cargo.lock

+79-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,6 @@ members = [
208208
#
209209
# This list is ordered alphabetically.
210210
[profile.dev.package]
211-
aes-soft = { opt-level = 3 }
212-
aesni = { opt-level = 3 }
213211
blake2 = { opt-level = 3 }
214212
blake2-rfc = { opt-level = 3 }
215213
blake2b_simd = { opt-level = 3 }

client/executor/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ sc-executor-wasmi = { version = "0.9.0", path = "wasmi" }
3535
sc-executor-wasmtime = { version = "0.9.0", path = "wasmtime", optional = true }
3636
parking_lot = "0.11.1"
3737
log = "0.4.8"
38-
libsecp256k1 = "0.3.4"
38+
libsecp256k1 = "0.6"
3939

4040
[dev-dependencies]
4141
assert_matches = "1.3.0"

primitives/core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ schnorrkel = { version = "0.9.1", features = ["preaudit_deprecated", "u64_backen
4949
sha2 = { version = "0.9.2", default-features = false, optional = true }
5050
hex = { version = "0.4", default-features = false, optional = true }
5151
twox-hash = { version = "1.5.0", default-features = false, optional = true }
52-
libsecp256k1 = { version = "0.3.2", default-features = false, features = ["hmac"], optional = true }
52+
libsecp256k1 = { version = "0.6", default-features = false, features = ["hmac", "static-context"], optional = true }
5353
merlin = { version = "2.0", default-features = false, optional = true }
5454

5555
sp-runtime-interface = { version = "3.0.0", default-features = false, path = "../runtime-interface" }

0 commit comments

Comments
 (0)