pub fn verify_program_address(
seeds: &[&[u8]],
program_id: &Address,
expected: &Address,
) -> Result<(), ProgramError>Expand description
Verify that an expected address matches the PDA hash for the provided seeds.
The seeds slice must already include the bump byte. This checks hash equality only. It does not establish curve membership, canonicality, account ownership, or an account’s initialization history.