Expand description
PDA (Program Derived Address) helpers.
Direct syscall-based PDA creation and derivation. No external dependencies.
Functions§
- based_
try_ find_ program_ address - Find a valid PDA by hashing seeds directly and checking curve validity.
- create_
program_ address - Create a program-derived address from seeds and a program ID.
- find_
bump_ for_ address - Find the bump seed for a known PDA address, skipping curve validation.
- find_
program_ address - Find a program-derived address and its bump seed.
- read_
bump_ from_ account - Read the bump byte directly from account data at a known offset.
- verify_
pda - Verify that an account’s address matches a PDA derived from the given seeds.
- verify_
pda_ from_ stored_ bump - Verify a PDA using the bump stored in account data (cheapest path).
- verify_
pda_ strict - Verify that an address matches a PDA derived from the given seeds.
- verify_
pda_ with_ bump - Verify a PDA with an explicit bump seed appended to the seeds.
- verify_
program_ address - Verify that an expected address matches the PDA hash for the provided seeds.