diff --git a/Cargo.lock b/Cargo.lock index b1ffe471b6e33e..228d0019276188 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2466,15 +2466,34 @@ dependencies = [ "base64 0.12.3", "digest 0.9.0", "hmac-drbg", - "libsecp256k1-core", - "libsecp256k1-gen-ecmult", - "libsecp256k1-gen-genmult", + "libsecp256k1-core 0.2.2", + "libsecp256k1-gen-ecmult 0.2.1", + "libsecp256k1-gen-genmult 0.2.1", "rand 0.7.3", "serde", "sha2 0.9.9", "typenum", ] +[[package]] +name = "libsecp256k1" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95b09eff1b35ed3b33b877ced3a691fc7a481919c7e29c53c906226fcf55e2a1" +dependencies = [ + "arrayref", + "base64 0.13.0", + "digest 0.9.0", + "hmac-drbg", + "libsecp256k1-core 0.3.0", + "libsecp256k1-gen-ecmult 0.3.0", + "libsecp256k1-gen-genmult 0.3.0", + "rand 0.8.5", + "serde", + "sha2 0.9.9", + "typenum", +] + [[package]] name = "libsecp256k1-core" version = "0.2.2" @@ -2486,13 +2505,33 @@ dependencies = [ "subtle", ] +[[package]] +name = "libsecp256k1-core" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5be9b9bb642d8522a44d533eab56c16c738301965504753b03ad1de3425d5451" +dependencies = [ + "crunchy", + "digest 0.9.0", + "subtle", +] + [[package]] name = "libsecp256k1-gen-ecmult" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3" dependencies = [ - "libsecp256k1-core", + "libsecp256k1-core 0.2.2", +] + +[[package]] +name = "libsecp256k1-gen-ecmult" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3038c808c55c87e8a172643a7d87187fc6c4174468159cb3090659d55bcb4809" +dependencies = [ + "libsecp256k1-core 0.3.0", ] [[package]] @@ -2501,7 +2540,16 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d" dependencies = [ - "libsecp256k1-core", + "libsecp256k1-core 0.2.2", +] + +[[package]] +name = "libsecp256k1-gen-genmult" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3db8d6ba2cec9eacc40e6e8ccc98931840301f1006e95647ceb2dd5c3aa06f7c" +dependencies = [ + "libsecp256k1-core 0.3.0", ] [[package]] @@ -4740,7 +4788,7 @@ version = "1.12.0" dependencies = [ "bincode", "byteorder", - "libsecp256k1", + "libsecp256k1 0.7.1", "log", "rand 0.7.3", "solana-measure", @@ -5764,7 +5812,7 @@ dependencies = [ "js-sys", "lazy_static", "libc", - "libsecp256k1", + "libsecp256k1 0.6.0", "log", "memoffset", "num-derive", @@ -5813,7 +5861,7 @@ dependencies = [ "js-sys", "lazy_static", "libc", - "libsecp256k1", + "libsecp256k1 0.6.0", "log", "memoffset", "num-derive", @@ -6107,7 +6155,7 @@ dependencies = [ "index_list", "itertools", "lazy_static", - "libsecp256k1", + "libsecp256k1 0.7.1", "log", "lru", "lz4", @@ -6173,7 +6221,7 @@ dependencies = [ "itertools", "js-sys", "lazy_static", - "libsecp256k1", + "libsecp256k1 0.6.0", "log", "memmap2", "num-derive", @@ -6225,7 +6273,7 @@ dependencies = [ "itertools", "js-sys", "lazy_static", - "libsecp256k1", + "libsecp256k1 0.7.1", "log", "memmap2", "num-derive", diff --git a/programs/bpf_loader/Cargo.toml b/programs/bpf_loader/Cargo.toml index 8366265ef64cb5..fa8d805cb52e8e 100644 --- a/programs/bpf_loader/Cargo.toml +++ b/programs/bpf_loader/Cargo.toml @@ -12,7 +12,7 @@ edition = "2021" [dependencies] bincode = "1.3.3" byteorder = "1.4.3" -libsecp256k1 = "0.6.0" +libsecp256k1 = "0.7.1" log = "0.4.17" solana-measure = { path = "../../measure", version = "=1.12.0" } solana-metrics = { path = "../../metrics", version = "=1.12.0" } diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 251fc0ef1ccfc4..c66042bb816c98 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -70,7 +70,7 @@ name = "solana_runtime" [dev-dependencies] assert_matches = "1.5.0" ed25519-dalek = "=1.0.1" -libsecp256k1 = "0.6.0" +libsecp256k1 = "0.7.1" rand_chacha = "0.2.2" solana-logger = { path = "../logger", version = "=1.12.0" } diff --git a/sdk/Cargo.toml b/sdk/Cargo.toml index 8956d98a35e472..5382ce4a56de46 100644 --- a/sdk/Cargo.toml +++ b/sdk/Cargo.toml @@ -55,7 +55,7 @@ generic-array = { version = "0.14.5", default-features = false, features = ["ser hmac = "0.12.1" itertools = "0.10.3" lazy_static = "1.4.0" -libsecp256k1 = { version = "0.6.0", optional = true } +libsecp256k1 = { version = "0.7.1", optional = true } log = "0.4.17" memmap2 = { version = "0.5.3", optional = true } num-derive = "0.3"