Crate Groups: First Contact to Cross-Shard

⏱️ Duration: 2–3 hours πŸ“Š Difficulty: Intermediate 🎯 Hyperscale-rs Specific

Read the groups in order (1 β†’ 6). Each group has a short description, code pointers, a πŸ“– What to read list (links to the hyperscale-rs repo), and a 10-question quiz. Pass threshold per quiz: 70%.

Group 1: First contact

Crates: production, node, mempool, types, core, messages

One-liner: How Hyperscale receives a transaction at the RPC and gets it into the right shards’ mempools.

πŸ“– What to read before the quiz:

Quiz: Group 1 (10 questions)

Group 2: Sharding and routing

Crates: types, core, node

One-liner: Once a transaction is decomposed into NodeIds and each shard is responsible for a slice of state, these crates define who does what and where the tx is stored.

πŸ“– What to read before the quiz:

Quiz: Group 2 (10 questions)

Group 3: Proposing and building blocks

Crates: bft, mempool, types, core

One-liner: How one validator becomes the proposer and assembles the next block from the mempool.

πŸ“– What to read before the quiz:

Quiz: Group 3 (10 questions)

Group 4: Voting and committing

Crates: bft, types, core

One-liner: How validators agree on a block and when it is finally committed (votes and QCs).

πŸ“– What to read before the quiz:

Quiz: Group 4 (10 questions)

Group 5: Execution after commit

Crates: execution, engine, node, types, core

One-liner: Once a block is committed, who runs the transactions and how single-shard vs cross-shard paths diverge.

πŸ“– What to read before the quiz:

Quiz: Group 5 (10 questions)

Group 6: Cross-shard (provisions and livelock)

Crates: provisions, execution, livelock, types, core

One-liner: How state moves between shards for cross-shard transactions and how Hyperscale avoids deadlock.

πŸ“– What to read before the quiz:

Quiz: Group 6 (10 questions)

Quick Test: Crates from Tx Submission to Cross-Shard Flow

This short quiz checks that you can map each stage of the transaction flow to the right crates. Pass threshold: 70%.

πŸ“– What to read before the quiz: Complete the reading for Groups 1–6 above (first contact β†’ sharding β†’ proposing β†’ voting β†’ execution β†’ cross-shard). The Quick Test covers the full path, so having read all six groups is enough.