Less deps: Stop using old version of libsecp256k1 (#9947)

(Moving further to 0.7 would require upgrading rand first)
This commit is contained in:
Squirrel
2021-10-07 07:15:33 +01:00
committed by GitHub
parent 07761c22f7
commit f4bffe6d0b
3 changed files with 5 additions and 32 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ smallvec = { version = "1", default-features = false, features = [
wasmi-validation = { version = "0.4", default-features = false }
# Only used in benchmarking to generate random contract code
libsecp256k1 = { version = "0.3.5", optional = true, default-features = false, features = ["hmac"] }
libsecp256k1 = { version = "0.6.0", optional = true, default-features = false, features = ["hmac", "static-context"] }
rand = { version = "0.7.3", optional = true, default-features = false }
rand_pcg = { version = "0.2", optional = true }
@@ -1425,7 +1425,7 @@ benchmarks! {
let message_hash = sp_io::hashing::blake2_256("Hello world".as_bytes());
let signatures = (0..r * API_BENCHMARK_BATCH_SIZE)
.map(|i| {
use secp256k1::{SecretKey, Message, sign};
use libsecp256k1::{SecretKey, Message, sign};
let private_key = SecretKey::random(&mut rng);
let (signature, recovery_id) = sign(&Message::parse(&message_hash), &private_key);