pub fn create_program_address(
seeds: &[&[u8]],
program_id: &[u8; 32],
) -> Result<[u8; 32], ProgramError>Expand description
Create a valid program derived address without searching for a bump seed.
Because this function does not create a bump seed, it may unpredictably return an error for any given set of seeds and is not generally suitable for creating program derived addresses.
However, it can be used for efficiently verifying that a set of seeds plus
bump seed generated by find_program_address derives a particular
address as expected. See the example for details.
See the documentation for find_program_address for a full description
of program derived addresses and bump seeds.
Note that this function does not validate whether the given seeds are within
the valid length or not. It will return an error in case of invalid seeds length,
incurring the cost of the syscall.