Build your own Blockchain
A small cryptocurrency: hash-linked blocks, proof of work, signed transactions, and nodes that agree on the longest valid chain.
- Intermediate
- About 8–16 h
- 4 checkpoints
- 3 tutorials · Go, Python, TypeScript
Pick a tutorial, then check yourself at each checkpoint. Work in any language you like.
Choose a tutorialWhy build it
Whatever you think of cryptocurrencies, a blockchain is a compact lesson in hashing, digital signatures and consensus between nodes that do not trust each other.
You will be able to
- Link blocks with cryptographic hashes and detect tampering.
- Implement proof of work and adjust its difficulty.
- Sign and verify transactions with public-key cryptography.
- Reach agreement across nodes with the longest-valid-chain rule.
Skills it exercises
Recommended on Cybersecurity Engineer and System Design.
How you know you are there
Work in any language. Each checkpoint ends with something you can run or observe, so you can check it yourself.
- Checkpoint 1Self-check
Chain
Done when: Blocks link by hash, and changing any past block makes validation fail.
- Checkpoint 2Self-check
Proof of work
Done when: Mining finds a nonce below a target, and difficulty adjusts to keep block time near a goal.
- Checkpoint 3Self-check
Transactions
Done when: Transactions are signed with Ed25519 or ECDSA keys, and forged or double-spent transactions are rejected.
- Checkpoint 4Self-check
Network
Done when: Three nodes exchange blocks over HTTP and converge on the same chain after a temporary split.
Stretch goals
- Unspent transaction outputs (UTXO) instead of balances.
- Proof of stake, following NaivecoinStake.
Step-by-step guides
Pick one in a language you know (tutorial languages: Go, Python, TypeScript). They open on the author’s site.
- Python
Learn Blockchains by Building One(external site)
Python: a chain, proof of work and consensus behind a Flask API.
- Go
Building Blockchain in Go(external site)
Go: a seven-part series with UTXOs, wallets, addresses and a network.
- TypeScript
Naivecoin: a tutorial for building a cryptocurrency(external site)
TypeScript: transactions, a wallet and peer-to-peer sync in short chapters.
Practice builds are self-paced: Tech Atlas does not track them or count them as evidence. To show a skill, take its knowledge check from the skill page.
Tutorials come from codecrafters-io/build-your-own-x (CC0, snapshot of 2026-07-14, commit aa17439; links checked on 2026-10-19). Each tutorial belongs to its author and keeps its own licence; Tech Atlas links to it and does not host it. Briefs, checkpoints and the mapping to skills are Tech Atlas editorial drafts.