Review Questions and Design Exercises
These questions are designed to test reasoning, not recall. A strong answer states its assumptions and distinguishes normal operation from failure recovery.
Basic-Knowledge Warm-Up
Use these questions before the chapter exercises. A reader should be able to answer them in plain language; formulas and protocol names are optional.
- What is the difference between blockchain history and current state?
- Why do many nodes repeat transaction checks instead of trusting one database?
- What is the difference between a block being included and a transaction being final?
- What evidence does a digital signature provide, and what does it not prove about a transaction's validity?
- Why can raising transactions per second make latency or decentralization worse?
- Explain safety and liveness using a system that must choose between halting and accepting conflicting payments.
- Why is a sidechain bridge a separate security boundary?
- In a payment channel, why must each participant keep the newest signed state?
- What does a rollup post to its settlement or DA layers, and why is a state root alone insufficient for recovery?
- Explain the difference between an optimistic fault proof and a validity proof.
- Why can a validity proof establish correctness without establishing data availability?
- Give an example of two transactions that can execute in parallel and two that conflict.
- Why do two BFT quorums need to overlap in an honest participant?
- For any future scaling claim, name one assumption and one failure state a wallet should expose.
Warm-up answer guide
- History is the ordered record of past blocks and transactions; state is the latest live balances, ownership, and contract data.
- Replication lets independent parties detect an invalid update or dishonest operator, at the cost of repeated work.
- Inclusion places a transaction in a current canonical candidate; finality adds evidence or depth that makes reversal forbidden or sufficiently unlikely under a stated model.
- A signature proves authorization by the corresponding key for the signed bytes. It does not prove sufficient balance, correct contract execution, inclusion, or finality.
- Larger or faster blocks can take longer to propagate and demand stronger hardware; batching can increase throughput while individual users wait longer.
- Safety prevents two conflicting payments from both becoming accepted. Liveness ensures valid payments eventually progress. A partition may force a protocol to halt to preserve safety.
- The bridge decides which sidechain evidence releases assets elsewhere. The base chain does not automatically verify every sidechain transition.
- An old state may assign balances differently. The newest signature, revocation rule, or monotonic sequence is evidence against stale settlement.
- A rollup posts ordered data or its commitment, state claims, and proof/dispute evidence according to its design. A root binds values but does not reveal them.
- An optimistic system accepts after a challenge window unless a challenger proves a fault. A validity system requires a compact proof of correct execution before acceptance.
- A verifier can check a proof over hidden or missing inputs without those inputs being available for users to reconstruct future state.
- Transfers over disjoint accounts can run together; two transactions writing one balance or reading a value another writes conflict.
- Overlap plus honest voting rules prevents certificates for incompatible commits under the fault bound.
- Acceptable answers include a sequencer outage and "forced-inclusion pending," prover delay and "unproven," or bridge finality delay and "not withdrawable."
Chapters 1-2: Measuring Scalability and the Trilemma
- A chain reports 50,000 TPS. What information is needed before comparing it with Ethereum or a rollup?
- Explain how throughput can increase while user latency becomes worse.
- Why does adding validators to a fully replicated state machine improve redundancy without necessarily improving execution capacity?
- Design a benchmark for an on-chain order book. Which workloads would expose hot-state contention?
- Give one example in which a protocol improves the trilemma frontier and one in which it merely moves cost to a less visible layer.
- Which forms of operational centralization are missed by validator count?
Chapters 3-5: Layers, Sharding, and Channels
- Follow one token transfer through an L1, a rollup, and a sidechain. At which point is each transfer final?
- Why is a cross-shard transfer naturally asynchronous? What prevents its receipt from being replayed?
- A protocol samples 100 validators without replacement from 1,000, of whom 250 are adversarial. Safety fails at 34 adversarial committee members. Write the exact capture probability and calculate it. How does reducing committee size affect parallelism and tail risk?
- A channel counterparty publishes an old signed state. What evidence lets the contract choose the newer state?
- Why can a payment route have sufficient graph connectivity but insufficient liquidity?
- Compare the failure of a channel operator, a sidechain bridge, and a rollup sequencer. Which failures threaten safety and which threaten liveness?
Chapters 6-8: Rollups, Modularity, and Data Availability
- Separate sequencer confirmation, proof or challenge acceptance, and L1 finality for an optimistic and validity rollup.
- Why does a validity proof not prove that users can reconstruct the state?
- Describe the minimum escape hatch needed when a sequencer censors a withdrawal.
- A modular rollup uses Celestia for data and Ethereum for settlement. What can each layer prove, and what can it not prove?
- Derive the probability that 15 independent samples miss an attack hiding half the shares.
- Compare L1 blobs, an external DA network, and a DAC across cost, validator integration, and withholding risk.
- What observability should a wallet expose when a modular transaction is delayed?
Chapters 9-10: Parallel Execution and Consensus
- Construct three transactions where two can run in parallel and the third must retry. Identify all read/write conflicts.
- Why is deterministic commitment required even if thread scheduling is nondeterministic?
- Suggest two state-model changes that reduce contention in an on-chain game.
- In a four-replica BFT system tolerating one Byzantine replica, explain why two quorums of three intersect in an honest replica.
- How does pipelining improve throughput without reducing a transaction's finality latency?
- Compare the network assumptions and fault thresholds of HotStuff and Sync HotStuff.
- Why should consensus benchmarks include block payload and leader failures?
- Why does one HotStuff quorum certificate not by itself prove that the certified block is committed?
- Compare a Sui address-owned fast-path transaction with a shared-object transaction. Which evidence is common, and which ordering requirement differs?
Chapter 11: Future Architecture
- Draw the dependency graph of a transaction using a solver, shared sequencer, validity rollup, external DA layer, and Ethereum settlement.
- For each edge, identify a safety failure, a liveness failure, and a recovery mechanism.
- What new concentration risks can shared sequencing or proof markets create?
- How can chain abstraction hide complexity without hiding security assumptions?
- Propose a reproducible benchmark for a multi-rollup system. Which finality boundary ends the timer?
- An MEV-Boost relay withholds the payload after a proposer signs the blinded header. Why can the proposer not safely publish a locally built payload for the same slot, and when must fallback be chosen?
Capstone Design Exercise
Design a blockchain architecture for one of the following:
- a global micropayment network;
- an on-chain game with one million daily players;
- a high-value exchange with a central limit order book;
- a public registry whose data must remain retrievable for decades.
Your design must state:
- transaction workload and latency target;
- execution environment and concurrency model;
- ordering and consensus mechanism;
- settlement and finality rule;
- data availability and archival strategy;
- bridge or messaging assumptions;
- upgrade and emergency controls;
- user exit or recovery path;
- benchmark method and hardware disclosure;
- the trilemma cost the design accepts.
Quantitative Laboratory: Capacity and Finality
Assume a rollup posts one batch every 10 seconds. Each batch contains 2,000 transactions, consumes 120 kB of compressed data, and takes a prover 24 seconds on one machine. The settlement chain finalizes a posted batch after 12 minutes. The sequencer has a 20-second forced-inclusion deadline.
- Compute offered throughput when every batch is full.
- Compute the sustained data rate in bytes per second, excluding commitment overhead.
- How many independent prover workers are required to prevent an unbounded proof queue under steady load? Include utilization headroom rather than giving only the mathematical minimum.
- Draw the user-visible milestones for sequencer receipt, batch publication, proof acceptance, and settlement finality.
- Which milestone should a bridge use before releasing a high-value withdrawal, and why?
- If the sequencer stops immediately after receipt, what evidence and deadline does a user need to invoke forced inclusion?
- Repeat the capacity calculation when average compression worsens by 40 percent and the settlement data limit is fixed.
A strong submission shows units, separates offered load from completed throughput, and names assumptions about proof aggregation and parallelism.
Fault-Injection Laboratory
Run an implementation or simulator through this sequence:
- operate at 60 percent of measured saturation for ten minutes;
- disconnect the current consensus leader for two views;
- delay 10 percent of data chunks beyond their normal retrieval deadline;
- stop the primary prover while proofs are queued;
- submit one malformed cross-domain message and one replay;
- restore all components without deleting persistent state.
Record p50, p95, and p99 latency; queue depth; time to view change; data-repair traffic; proof backlog; finalized height; and every user-visible status transition. The report must identify whether each fault affected safety, liveness, latency, or only cost. It must also explain which component detected the fault and which component initiated recovery.
Design Review Rubric
Evaluate the capstone on five dimensions, each from 0 to 4:
- Explicit assumptions: network, trust, workload, finality, and failure assumptions are testable.
- End-to-end correctness: the transaction, message, withdrawal, and recovery paths are internally consistent.
- Quantitative evidence: calculations retain units, benchmarks reach saturation, and latency distributions are reported.
- Adversarial depth: censorship, withholding, equivocation, reorganization, upgrade compromise, and correlated outages are addressed.
- User recovery: escape paths are available, affordable under congestion, observable, and exercised in tests.
A score of 0 means the issue is absent. A score of 2 means it is described but not measured or tested. A score of 4 means another team could reproduce the evidence and challenge the assumptions.
Instructor Notes and Solution Sketches
These sketches identify the reasoning a strong answer should contain. They are not unique solutions. Quantitative answers should retain units and state assumptions.
Chapters 1-2
A credible throughput comparison fixes transaction semantics, state size, offered-load curve, duration, hardware, network topology, validator independence, completion boundary, and fault behavior. Throughput can rise while latency worsens when batching waits longer, queues grow near saturation, or finality requires more stages. Adding replicas to a fully replicated state machine adds fault tolerance and read capacity, but each replica still executes the same ordered writes.
For the order-book benchmark, vary the number of markets, price-level concentration, cancellation ratio, market-order depth, account skew, and burst arrival. Hot price levels reveal serial state. A protocol improves the trilemma frontier when it lowers production or verification cost without changing the claim being measured; it only moves cost when it replaces broad verification with a committee, operator, expensive recovery path, or hidden subsidy.
Chapters 3-5
An L1 transfer is complete under the L1's finality rule. A rollup transfer passes sequencer, publication, proof or challenge, and settlement milestones. A sidechain transfer follows its own consensus, and its bridge adds another finality rule.
Cross-shard execution is asynchronous because independent committees cannot atomically lock all state without coordination that erodes parallelism. The destination authenticates the source receipt and stores a consumed nonce or message identifier. For the stated committee, if X is the adversarial count:
P[X >= 34]
= sum from x=34 to 100 of
C(250, x) C(750, 100-x) / C(1000, 100)
approx 0.02144, or 2.14%
The calculation assumes uniform sampling without replacement and counts validator identities rather than correlated control or stake weight. Smaller committees can increase parallel capacity while increasing capture tail risk. In a state channel, signatures authenticate updates and a monotonic nonce selects the newest state. Payment routes need directional balance on every hop, not only graph connectivity.
Operator failure has different effects: a channel counterparty can delay cooperative close but the adjudicator preserves funds; a sidechain bridge compromise may violate safety; a sequencer outage should affect liveness if forced inclusion and exit remain intact.
Chapters 6-8
An optimistic rollup has fast soft confirmation but final state waits through publication, challenge, and settlement. A validity rollup replaces the challenge period with proof generation and verification, while settlement finality still comes later. A validity proof establishes a transition statement; unavailable inputs can still prevent users from reconstructing state or exiting.
A minimum escape path authenticates forced transactions through L1, defines a bounded inclusion deadline, and permits state advancement or withdrawal without the sequencer. For an external DA design, the DA layer can prove that bytes were ordered and available under its rules; settlement verifies only the commitment or proof its contract understands.
If each independent sample has probability 1/2 of missing a half-hidden block, 15 samples all miss with probability:
(1/2)^15 = 1/32768 ≈ 0.00305%
The calculation assumes uniform unpredictable samples, independent observations, valid encoding, honest header authentication, and peers that cannot selectively identify and deceive the sampler.
A wallet should distinguish waiting for sequencing, data publication, proof, settlement finality, and destination execution. "Pending" alone does not tell a user whether retrying is safe.
Chapters 9-10
One conflict example is T1: read A, write B; T2: read C, write D; T3: read B, write C. T1 and T2 can speculate together from the same snapshot, while T3 depends on both and must wait or retry. A parallel schedule must commit a state equivalent to canonical order; otherwise validators can calculate different roots from identical blocks.
Reduce contention by partitioning per-player or per-market state, replacing one global counter with mergeable local counters, and avoiding synchronous writes to shared metadata. In a four-replica BFT system, two quorums of three intersect in two replicas; with at most one Byzantine, at least one overlap is honest. Pipelining overlaps different consensus stages across blocks, improving steady-state block rate without shortening one block's commit chain.
HotStuff assumes eventual network bounds for liveness and tolerates fewer than one-third Byzantine replicas in the common model. A synchronous variant uses a known bound and derives different protocol guarantees from that stronger assumption. Benchmarks must include payload dissemination and leader failures because empty-block voting hides bandwidth and view-change cost.
A single HotStuff QC proves a quorum vote in one phase. Commitment depends on the protocol-specific certified chain and locking rule, so an explorer must not relabel every certified proposal as final. In Sui, both fast-path and consensus traffic use signed Mysticeti DAG blocks and Byzantine-quorum evidence. Address-owned fast-path transactions can certify and finalize without waiting for total-order consensus, while shared and party object transactions require consensus to assign an order and versions.
Chapter 11
A dependency graph should show user, solver, sequencer, execution rollup, DA network, prover, settlement chain, and destination bridge. Each edge needs authenticated data, finality, timeout, and recovery. Shared sequencing can concentrate order flow; proof markets can concentrate specialized hardware and witness access; solver markets can concentrate routing and censorship power.
Chain abstraction is safe when the interface hides mechanics but still exposes assets, maximum spend, destination, finality status, fees, and recovery. A multi-rollup benchmark fixes workload and route, records every domain boundary, and ends at a named milestone such as settlement finality or destination execution rather than the first sequencer response.
After a proposer signs a blinded payload header, publishing a different local payload for the same slot can create conflicting signed proposals and a slashable equivocation. Relay deadlines, local construction, and circuit-breaker fallback must select the local path before signing the blinded header. Withholding after the signature therefore causes a missed slot rather than a safe late substitution.
Quantitative Laboratory
With 2,000 transactions every 10 seconds, offered throughput is:
2,000 / 10 s = 200 transactions/s
The mean compressed data rate is:
120 kB / 10 s = 12 kB/s
One proof job consumes 24 prover-seconds and arrives every 10 seconds, so minimum steady capacity is 24/10 = 2.4 workers. Three workers give only 80 percent utilization under uniform jobs and no failures. Four workers give 60 percent and more useful headroom. A production answer should examine proof-time variance, aggregation, restart cost, and correlated hardware loss.
The bridge should normally wait for proof acceptance plus the chosen settlement finality, not sequencer receipt. Forced inclusion needs the signed transaction, evidence or timing rule showing the sequencer deadline expired, and enough L1 capacity to submit it.
If compression worsens by 40 percent, a batch uses 168 kB and mean data rate becomes 16.8 kB/s. With a fixed 12 kB/s limit, only about 12/16.8 = 71.4% of the former transaction rate fits, or roughly 143 transactions/s under the same mix. The exact result depends on whether the stated limit was already saturated and whether batch overhead is fixed.
Capstone Review
A complete capstone has two diagrams: the normal transaction/finality path and the degraded recovery path. It includes capacity arithmetic for execution, data, proving, consensus, and state; a role and key inventory; at least one safety and one liveness failure per external dependency; a measured mass-recovery test; and a clear statement of the accepted trade-off.