referrerpolicy=no-referrer-when-downgrade
pub async fn key_ownership_proof<Sender>(
    sender: &mut Sender,
    relay_parent: Hash,
    validator_id: ValidatorId,
) -> Result<Option<OpaqueKeyOwnershipProof>, Error>
where Sender: SubsystemSender<RuntimeApiMessage>,
Expand description

Generate validator key ownership proof.

Note: The choice of relay_parent is important here, it needs to match the desired session index of the validator set in question.