Skip to main content

verify_pda

Function verify_pda 

Source
pub fn verify_pda(
    account: &AccountView,
    seeds: &[&[u8]],
    bump: u8,
    program_id: &Address,
) -> ProgramResult
Expand description

Verify a PDA with bump, using the cheap create_program_address path.

This costs ~200 CU vs ~1500 CU for find_program_address. Always use this when you have the bump stored.