pub fn validate_buffer_pda( program_id: &Address, buffer: &Address, mint: &Address, bump: u8, ) -> Result<(), ProgramError>
Confirm buffer matches the derived buffer PDA for mint and bump.
buffer
mint
bump