developer-content
developer-content copied to clipboard
Updated account-data-matching, bump-seed-canonicalization
Summary of Changes: Bump Seed Canonicalization
Frontmatter
-
Added
keywords
andtags
fields in the new version. -
Removed
objectives
field in the new version.
Summary Section
- Updated the summary to be more concise and focused on the key points.
Lesson Section
- Expanded explanation of bump seeds and canonical bumps.
- Added detailed examples of insecure and secure PDA derivation.
- Included code examples for both insecure and secure implementations.
-
Added explanation of using Anchor's
seeds
andbump
constraints.
Code Examples
-
Added code examples for:
- Insecure PDA derivation using
create_program_address
. - Secure PDA derivation using
find_program_address
. - Using Anchor's
seeds
andbump
constraints.
- Insecure PDA derivation using
Test Section
- Added a detailed test example to show how the secure implementation prevents multiple claims.
Challenge Section
- Added a challenge section encouraging users to audit their own or others' programs for proper PDA derivation.
Callout Section
- Added a callout section prompting users to push their code to GitHub and provide feedback.