coral-xyz / sealevel-attacks

☠️ Common Security Exploits and Protections on Solana
518 stars 99 forks source link

Added comments to 7-bump-seed-canonicalization programs (insecure, recommended, secure) #45

Open techvoyagerX opened 2 months ago

techvoyagerX commented 2 months ago

Added necessary comments to 7-bump-seed-canonicalization programs. Clarified the key logic behind PDA derivation, bump seed validation, and value updates. Ensured comments highlight the insecure, recommended, and secure approaches.