- programs store data in PDAs
- program derived address
- can think of them as key value stores
- address is the key
- data inside the account is the value
- can also think of them as records in a db
- address being the primary key used to look up the values inside
- PDAs combine a program address and some dev-chosen seed to create addresses that store individual pieces of data
- since PDAs are addresses that lie off the Ed25519 Elliptic curve, PDAs dont have secret keys
- instead, PDAs can be signed for by the program address used to create them
- can be consistently found based on the
- program address
- bump
- seeds
findProgramAddresses using programid and seeds
deriveProgramAddress using programid and seeds
can pretty much store anything onchain using this
associated token account are PDAs whose seeds are the owner’s pubkey and token mint