pub fn assert_pda(
account: &AccountView,
seeds: &[&[u8]],
program_id: &Address,
) -> Result<u8, ProgramError>Expand description
Derive a PDA from seeds, verify it matches the account, return the bump.
Calls find_program_address (syscall on-chain).