Custody engineering · Backend systems · Applied research

Field notes from systems where edge cases move money.

Bitcoin, EVM, Solana and the backend paths that turn chain state into balances, transactions and evidence. Written for engineers who need the failure modes, not a product overview.

Also available via RSS.

Custody engineering

Balance at 14:00 UTC Does Not Exist
Chains never close, so a point-in-time balance has to be derived, not queried. The anchor problem, the per-chain traps, and why reproducibility is the real requirement.
Why Your Deposit Detection Misses Money
Proxy contracts, fee-on-transfer tokens, reorgs, UTXO edge cases and Solana token accounts - and why continuous reconciliation is the only real fix.
Transaction State Machines for Multi-Chain Custody
Broadcast is not done, confirmed is not final, and retries are where money gets lost. What breaks, chain by chain.
UTXO Coin Selection in Production
Your Bitcoin balance is not a number, it is a set. Fees, dust, privacy and the concurrency problem the tutorials skip.
Stuck Transactions at Scale
RBF, CPFP, nonce queues, expiring blockhashes and the pinning problem - a remediation playbook for transactions that will not confirm.

Engineering notes

Money in Rust: Making Illegal States Unrepresentable
Newtypes, phantom-typed currencies, checked arithmetic and typestate - how much of a financial bug class the compiler can take off your hands, for zero bytes.
Your Backtest Is Lying to You
Look-ahead bias, survivorship, point-in-time data and overfitting - why a backtest is a replay engine, and what that demands of it.