Design a Proof of Reserves Attestation Pipeline
Last updated: November 29, 2026
Quick Overview
Design a system that periodically proves customer liabilities are fully backed by on-chain assets, letting each customer verify their balance was included without revealing other customers' balances.
Coinbase
November 29, 20260
0
0 solved
Design a system that periodically proves customer liabilities are fully backed by on-chain assets, letting each customer verify their balance was included without revealing other customers' balances.
After high-profile exchange collapses, proving reserves became an expectation for custodians like Coinbase. This question checks whether you can combine a ledger snapshot, a Merkle sum tree and on-chain address control proofs into a clear, auditable pipeline.
What the Interviewer Expects
- Take a consistent snapshot of liabilities per customer per asset
- Build a Merkle sum tree with hashed, salted leaves
- Publish the root and let users verify inclusion with a proof
- Prove control of reserve addresses with signed messages or test transactions
- Explain what this proves and what it does not, such as off-chain liabilities
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- Why use a Merkle sum tree instead of a plain Merkle tree?
- How do you stop someone from inferring a balance from proof paths?
- How would zero-knowledge proofs improve this?
- How often should attestations run and why?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
At a chosen snapshot time, compute total liabilities per asset, prove assets at least as large, and give each customer a way to check that their balance at that time was included. Must not reveal any ...
High-Level Design
Step one: snapshot the ledger at a specific ledger sequence so every account reflects the same instant (a read replica at a consistent point or a CDC offset). Step two: for each customer and asset, co...