developer-content icon indicating copy to clipboard operation
developer-content copied to clipboard

Updated account-data-matching, bump-seed-canonicalization

Open Epistetechnician opened this issue 5 months ago • 2 comments

Summary of Changes: Bump Seed Canonicalization

Frontmatter

  • Added keywords and tags 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 and bump 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 and bump constraints.

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.

Epistetechnician avatar Sep 01 '24 15:09 Epistetechnician