pub fn signing_key_and_index<'a>(
validators: impl IntoIterator<Item = &'a ValidatorId>,
keystore: &KeystorePtr,
) -> Option<(ValidatorId, ValidatorIndex)>Expand description
From the given set of validators, find the first key we can sign with, if any, and return it along with the validator index.