I want to benchmark verifying sr25519 signatures and for that I need to create a bunch of key pairs, sign some data, then benchmark the verification process, however using sp_core::sr25519::Pair
is not allowed, it throws this error:
error[E0432]: unresolved import `sp_core::sr25519::Pair`
--> /home/test/projects/custom/pallet/src/benchmarking.rs:8:5
|
8 | use sp_core::sr25519::Pair;
| ^^^^^^^^^^^^^^^^^^^^^^ no `Pair` in `sr25519`
I assume this is happening because it could be leaking some std features in Pair so it wouldn't compile, so how do I solve this?
PS: I'm not tied necessarily to that specific struct (in fact this is the first time going to work with it); I used to work with a cryptostore
that generates sr25519
keys, so anything similar.