mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 05:21:08 +00:00
Less deps: Stop using old version of libsecp256k1 (#9947)
(Moving further to 0.7 would require upgrading rand first)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user