Function solana_vote_program::vote_state::authorize
source · [−]pub fn authorize<S: BuildHasher>(
invoke_context: &InvokeContext<'_>,
instruction_context: &InstructionContext,
signers: &HashSet<Pubkey, S>,
vote_account_index: usize,
authorized: &Pubkey,
vote_authorize: VoteAuthorize
) -> Result<(), InstructionError>
Expand description
Authorize the given pubkey to withdraw or sign votes. This may be called multiple times, but will implicitly withdraw authorization from the previously authorized key