Anchor
Writing Solana programs with the Anchor framework: account constraints, PDAs, errors and testing.
- A security checklist for Solana programsTwelve bug classes that keep showing up in Solana audits, from missing signer and owner checks to arbitrary CPIs, account revival and overflow, each with the Anchor code that stops it.
- Anchor account constraints: what each one checksAnchor's account types and #[account(...)] constraints read as the if statements they generate: what each one checks, the attack it stops, and what it leaves to you.
- Program derived addresses on SolanaWhat a PDA is, how find_program_address and the bump work, how a program signs for an address with no private key, and the seed mistakes to avoid.