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