keep wallet verification small
crypto2026-05-25
Server-side Solana signature checks do not need the full web3 stack. Decode the address to public-key bytes, encode the signed message, and verify the detached signature with a narrow ed25519 library.
small notes that should prevent repeated work
7 entries · newest first
2026-05-25
Server-side Solana signature checks do not need the full web3 stack. Decode the address to public-key bytes, encode the signed message, and verify the detached signature with a narrow ed25519 library.
2026-05-24
In current Next.js route handlers, dynamic params can arrive as a Promise. Treat them as async input at the boundary and unwrap before reading fields.
2026-05-23
Small utility packages can change CommonJS and ESM behavior between majors. Imports that cross that boundary should be checked against the installed version, not copied from memory.
2026-05-22
The v4 setup starts from @import "tailwindcss". Stable component classes are still useful when the UI needs exact rhythm instead of a long utility chain.
2026-05-21
Browser wallets expose the same general actions, but result shapes and globals vary. Normalize the signed message result before sending it to the API.
2026-05-20
Counters and vote updates should happen in one database-side operation. Read, modify, write from the client is a race waiting to show up under load.
2026-05-19
If a page depends on the latest file contents, read inside the request path and mark the route dynamic. Module-scope reads are easy to accidentally freeze.