pub fn find_program_address(
seeds: &[&[u8]],
program_id: &Address,
) -> (Address, u8)Expand description
Find a program-derived address and its bump seed.
Iterates bump seeds 255..=0 until a valid PDA is found.
Runs off chain too, with the const SHA-256 and curve check in
hopper_native, and returns what the cluster returns, so a PDA check
can be exercised in a plain unit test.
ยงPanics
Panics if no viable bump exists (matching upstream
Pubkey::find_program_address).