Project course · 9 units · Free
Build a Blockchain Laboratory
Build a local node, investigate conflicting histories and test why a validator must remember its vote.
Get the course on GitHubSupported route: local terminal project. Keep first attempts and exports; public checks cover only their stated cases.
- What you’ll learn
- Signed transactions, state commitments, fork choice and quorum certificates; an optional vote-journal crash experiment.
- Your project
- Your own local protocol, an unfamiliar incident report and a separate vote guard for optional module 09.
- How you’ll work
- Eight core modules plus one optional restart module. Read the supplied lessons; implement and check code in Node.js. The optional browser reader and practice have not been qualified.
What you’ll build
- Validate signed transactions, apply atomic state transitions and verify Merkle proofs.
- Implement mempool selection, block validation, fork choice and authenticated quorum certificates.
- Explain an unfamiliar partition and reorganization. Optionally build a separate vote journal and compare crash cuts with stale-snapshot rollback.
Before you start
JavaScript ES modules, arrays, objects and terminal use. Node supplies cryptography; the course supplies an in-process scheduler and fixtures. The optional restart experiment requires your completed module-07 protocol.
No dependencies or installation required when Node.js is already installed. The terminal tools were tested with Node 26.5.1 on macOS; other profiles remain unqualified. Code checks and simulations run in the terminal. The optional reader has browser practice, but its browser and accessibility behavior have not been qualified.
Balances are valueless counters; keys are ephemeral. Crash and rollback are finite in-memory simulations, not disk durability or production consensus. No wallet, public chain, mining, token launch, account or paid service is involved.
Run the course locally
Clone the learner source, then run these commands.
git clone https://github.com/itsHabib/free-to-learn.git
cd free-to-learn
git checkout edbb806728cade5595116af205bb890e8e3bd756
cd courses/blockchain-laboratory
node lab.mjs start
node lab.mjs lesson 01
node lab.mjs check 01
# After completing module 07:
node lab.mjs lesson 09
node restart.mjs start
node restart.mjs checkImplement work/protocol.mjs for core modules 01–08 and work/vote-guard.mjs for optional module 09. Core check all still covers only modules 01–08. After module 07, node restart.mjs simulate crash and node restart.mjs simulate rollback use your own protocol and vote guard. Keep the old course/work folder as a prior-build record; copy your own work into a fresh copy of the course before starting the extension. Start refuses to overwrite it. Browser practice keeps its old source-identity namespace; no history is migrated or deleted.
The TODO starter should fail with useful diagnostics. Implement a step, run its checks and preserve the result before revising. The course folder contains the lessons, project contracts and self-review guidance.
Optional LLM help uses your own account and is advice, not correctness evidence. No staffed feedback is required. Passing checks covers their declared cases; learning gains and human completion times remain unmeasured.
Exact learner source
The commands above use learner edition edbb806728cade5595116af205bb890e8e3bd756. This static page does not run or grade code.