Design a proxy in front of a signing key: it decides what may be signed under which conditions, fails safely, produces an auditable record, and the trading systems shouldn't notice the latency.
- Callers are services on the same bare-metal host
- Solana transactions, signed with ed25519
- The key moves real money
Parse the exact bytes, check deny-by-default rules for that key, append a record, then sign; decide failure modes per key and keep the path free of network, locks and allocation.
- Asks which key, the latency budget, and what the worst acceptable loss is
- Parses the exact bytes and signs those same bytes
- Deny by default, per key: programs, instructions, value per window, tip and fee ceilings, durable nonces
- The record is appended before the signature leaves, with the policy version
- Failure modes are stated per key, in advance
- No network, locks or allocation on the path, and a measured budget
- Policy changes are reviewed, signed, shadowed and reversible
- Correctness of the path: Same bytes, deny by default per key, record before signature, policy version in each record.
- Failure and trade-offs: Failure decided per key, and names what each choice costs.
- Latency reasoning: Agrees a budget, removes network, locks and allocation, and measures at the tail.
- communication: Clarifies, states the plan, draws it, walks what breaks.
Interviewers score the trade-offs: where it runs and what that costs, what happens when each part fails, and how you'd prove it's correct. The worked answer is in this topic's primer. Practise drawing it in five minutes, then talk through what breaks.
Designing a generic policy service with a database and an HTTP API. That can't meet the budget, and it shows you didn't start from the constraint.