is_valid_spl_interface_pda

Function is_valid_spl_interface_pda 

Source
pub fn is_valid_spl_interface_pda(
    mint_bytes: &[u8],
    spl_interface_pubkey: &Pubkey,
    pool_index: u8,
    bump: Option<u8>,
    restricted: bool,
) -> bool
Expand description

Validate that an SPL interface PDA is correctly derived.

§Arguments

  • mint_bytes - The mint public key as bytes
  • spl_interface_pubkey - The SPL interface PDA to validate
  • pool_index - The pool index (0-4)
  • bump - Optional bump seed for faster validation
  • restricted - Whether to validate against restricted derivation

§Returns

true if the PDA is valid, false otherwise