pub fn authorize(
stake_account: &mut BorrowedAccount<'_>,
signers: &HashSet<Pubkey>,
new_authority: &Pubkey,
stake_authorize: StakeAuthorize,
clock: &Clock,
custodian: Option<&Pubkey>,
) -> Result<(), InstructionError>
Expand description
Authorize the given pubkey to manage stake (deactivate, withdraw). This may be called multiple times, but will implicitly withdraw authorization from the previously authorized staker. The default staker is the owner of the stake account’s pubkey.