Posts
All the articles I've posted.
-
Don't pass the signed bytes twice: verifying an enclave's signature in a Solana program
The Solana program never verifies the enclave's signature; a precompile does, one instruction earlier. Five checks that make sure the program reads the bytes that were actually verified, and the attack each one stops.
-
Seven checks: verifying an AWS Nitro attestation in the browser
My server says an enclave scored this borrower. The verify page checks that claim itself, against AWS's signature and Solana, without trusting my server. Seven checks, and where the obvious code would have been wrong.
-
The browser doesn't trust the server: a Solana frontend that checks its own backend
My server can tell the page a borrower got tier A. The page doesn't show it until Solana agrees. Five checks a Solana frontend can run on its own backend.
-
Money without floats: parsing rupees as integer paise
Why 96 of 100 paise endings repeat in binary, how that can flip a signed credit tier, and how I parse bank amounts from text into integer paise.