Register and share your invite link to earn from video plays and referrals.

Pete
@_rustopian
@flint_trade_ on Solana. Proof types maxi. Spare time keys, microtones, scifi, tabletop, human languages
548 Following    2K Followers
Where your Solana / Rust bug gets caught: trusted types → in your editor const asserts/lints → when you compile pinning tests → when you run tests runtime checks → in production ... hopefully Move everything you can up the list. Read how at
Show more
Most Solana programs are one typo - or one agent mistake - away from disaster. Security pros warned us 5 years ago to not do this, but everybody does it. Examples do it. Agents do it. Auditors clear it. Millions drain. fn withdraw(...) -> Result { if record.owner != *user.key { return Err(IllegalOwner); } if amount > record.quote { return Err(InsufficientFunds); } // more `if`s here - hope we have enough! record.quote -= amount; transfer_out(destination, amount) } For both safety and performance, it's time to learn from decades of critical systems engineering, embrace the strength of Rust, and "Parse, Don't Validate." Runtime checks don't belong in a program's internals. They belong at the boundaries. Read Here 👉 👉
Show more