fn to_account_ids(
    keys: &[AuthorityKeys]
) -> impl Iterator<Item = AccountId> + '_