pub fn find_stake_program_address(
    program_id: &Pubkey,
    vote_account_address: &Pubkey,
    stake_pool_address: &Pubkey,
) -> (Pubkey, u8) {
    Pubkey::find_program_address(
        &[
            &vote_account_address.to_bytes()[..32],
            &stake_pool_address.to_bytes()[..32],
        ],
        program_id,
    )
}
/// Generates the stake program address for a validator's vote account
Generates the stake program address for a validator's vote account
Generates the stake program address for a validator ' s vote account
pub fn find_stake_program_address(
    program_id: &Pubkey,
    vote_account_address: &Pubkey,
    stake_pool_address: &Pubkey,
) -> (Pubkey, u8) {
    Pubkey::find_program_address(
        &[
            &vote_account_address.to_bytes()[..32],
            &stake_pool_address.to_bytes()[..32],
        ],
        program_id,
    )
}
pub fn find_stake_program_address ( program_id : & Pubkey , vote_account_address : & Pubkey , stake_pool_address : & Pubkey , ) -> ( Pubkey , u8 ) { Pubkey :: find_program_address ( & [ & vote_account_address . to_bytes ( ) [ .. 32 ] , & stake_pool_address . to_bytes ( ) [ .. 32 ] , ] , program_id , ) }
Generates the stake program address for a validator's vote account
Generates the stake program address for a validator ' s vote account
program_id
&Pubkey
vote_account_address
&Pubkey
stake_pool_address
&Pubkey