pub fn verify_pda(
account: &AccountView,
seeds: &[&[u8]],
program_id: &Address,
) -> Result<(), ProgramError>Expand description
Verify that an account’s address matches a PDA derived from the given seeds.
pub fn verify_pda(
account: &AccountView,
seeds: &[&[u8]],
program_id: &Address,
) -> Result<(), ProgramError>Verify that an account’s address matches a PDA derived from the given seeds.