[][src]Function solana_vote_api::vote_state::authorize_voter

pub fn authorize_voter(
    vote_account: &mut KeyedAccount,
    other_signers: &[KeyedAccount],
    authorized_voter_pubkey: &Pubkey
) -> Result<(), InstructionError>

Authorize the given pubkey to sign votes. This may be called multiple times, but will implicitly withdraw authorization from the previously authorized voter. The default voter is the owner of the vote account's pubkey.