mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-09 20:11:09 +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:
@@ -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