DAVID STANCEL · COURSE
1 / 62
← → navigate · F fullscreen
An interactive course
Digital Currencies
& Blockchain
press → or click to begin
Minitech MBA · Introduction

Digital Currencies
& Blockchain

From cryptography and the cypherpunks to Bitcoin, mining, consensus, NFTs, DeFi and stablecoins — built up from first principles, with demos you can play with.

David Stanceldavidstancel.com~50 slides
About

Who's teaching this

Researching crypto since 2012. MSc in Digital Currencies. I build, advise, write and teach across the space.

  • ◇ Founder — Blockchain Slovakia · Co-founder — Paralelná Polis
  • ◇ ex-CTO @ Fumbi · Advisor @ Vacuumlabs & NBS
  • ◇ Lecturer @ STU FIIT · Author of Coinstory
  • ◇ Founder — Cork.tech, Amagi Labs, Polystate.io

david@amagilabs.io · davidstancel.com

Why crypto is in your IT curriculum

You're closer to this than you think

In plain words

Blockchain isn't a separate magic world — it's built from the exact things you're already learning: code, databases, networks and security.

It's software
Smart contracts are just code. dApps use the same React you'll learn.
It's databases
A blockchain is a special kind of shared database.
It's security
Keys, hashing, encryption — core IT skills, applied.

Goal for today: not to make you a blockchain engineer. By the end you'll understand crypto, use a wallet safely, spot a scam, and know how the apps are built — solid professional literacy you can build on.

Why this matters to you — right now

The AI you already use is about to need crypto

In plain words

You use ChatGPT and Copilot to get answers. The next step is AI that does things for you — books the trip, buys the tool, pays the invoice. And to pay, an AI agent can't pull out a credit card. It needs money built for software.

Cards don't fit
Card networks need a human, a bank, signups, fees. An agent making hundreds of tiny payments breaks that model.
Crypto does
A wallet is just a key. An agent can hold one, pay instantly, 24/7, in cents — no human in the loop.
The rails are new
Coinbase, Stripe & Visa shipped agent-payment rails in 2026. Real volume is still tiny — but the plumbing is being laid now.

So the crypto we cover today isn't just "internet money for traders." It's quietly becoming the payment layer for the AI economy — the world many of you are moving into.

Crypto × AI · how it actually works

How one AI agent pays another

Your AI assistant needs data / a service
It hits a paywall: "402 — pay first"
It pays in a stablecoin from its own wallet
Service unlocks — in one second, no human
The key idea

The "money" here is a stablecoin — a crypto coin pinned to $1, so the price doesn't swing. That's what makes it usable for actual payments. We'll cover stablecoins properly at the end — keep this picture in mind.

the standard

x402

An open payment standard — backed by Coinbase, Stripe, Visa, Mastercard & Circle — that lets a service charge an AI agent a tiny fee per request. It reuses "Payment Required," an error code built into the web decades ago.

the money

Stablecoins (USDC)

$1-pegged crypto. The currency agents actually settle in — fast, global, programmable.

the wallet

Agent wallets

Coinbase, Stripe & Visa now give an AI agent its own spending account, with limits a human sets.

01

History & evolution of digital money

In plain words

Money is a shared agreement about who owns what. Bitcoin didn't fall from the sky — it's the last piece of a 40-year cryptography puzzle.

The foundation

It all starts with cryptography

Three ideas from the 1970s make digital money even thinkable: Diffie & Hellman (1976, public-key exchange), Merkle (hash trees), and the math that lets you prove who you are without revealing your secret.

The building blocks
  • Hash functions — turn any data into a unique fixed-length fingerprint
  • Digital signatures — prove a message is really from you
  • Public / private keys — share one, keep one secret
Encryption · 1 of 2

Symmetric encryption

In plain words

One shared secret key locks and unlocks the message. Fast — but how do two strangers agree on the key without meeting?

Message
🔒 encrypt
same key
·xQ9f·
🔓 decrypt
same key
Message

The "key distribution problem" is exactly what the next idea solves.

Encryption · 2 of 2

Asymmetric (public-key) encryption

In plain words

Two keys that are mathematically paired. Anyone can lock with your public key; only your private key opens it. No shared secret needed — the breakthrough that makes crypto possible.

Message
🔒 encrypt
public key
·xQ9f·
🔓 decrypt
private key
Message
Your wallet address is derived from your public key; spending requires a signature made with your private key. "Not your keys, not your coins" is literally this: whoever holds the private key controls the funds. Lose it and there's no password reset — that's the price of having no middleman.
First attempts

David Chaum & DigiCash (1990)

The first real digital cash — with genuine cryptographic privacy ("blind signatures"). Brilliant tech, but one fatal flaw: a company ran it. When DigiCash went bankrupt in 1998, the money died with it.

The lesson

Great cryptography isn't enough. If one company can be shut down, so can the money. We needed to remove the company.

Civil rights in cyberspace

The Crypto Wars

In the 1990s the US classified strong encryption as a munition — illegal to export. Activists printed the RSA algorithm on a t-shirt to make the point: is a few lines of math really a weapon?

Why it matters

The right to encrypt — to have private communication and money — had to be fought for. Crypto was political from day one.

The movement

The Cypherpunks

A 1990s mailing list of cryptographers and activists with a creed: "Cypherpunks write code." Don't lobby for privacy — build tools that make it real. Satoshi posted the Bitcoin whitepaper to their descendants.

  • Eric Hughes — "A Cypherpunk's Manifesto"
  • Tim May — "The Crypto Anarchist Manifesto"
  • Hal Finney, Wei Dai, Nick Szabo, Adam Back — the direct ancestors of Bitcoin
Before Bitcoin: HashCash (Adam Back, proof-of-work for email spam), b-money (Wei Dai), Bit Gold (Nick Szabo), RPOW (Hal Finney). Each solved a piece. Satoshi's genius was assembling them into one working system — and solving the last problem: agreement without a trusted party.
The big arc

A 40-year march to decentralization

1976
Diffie–Hellman: public-key crypto
1990
Chaum's DigiCash — centralized
1990s
Cypherpunks · HashCash · b-money
2008
Satoshi's Bitcoin whitepaper
2015
Ethereum — programmable money
Today
NFTs · DeFi · stablecoins
02

Bitcoin

The first system to remove the company — and still keep everyone honest.

The one-liner

What is Bitcoin, anyway?

In plain words

Digital gold you can email. A money no government, bank or company controls — its rules enforced by math and a global network of computers.

No CEO. No printing press. A fixed supply of 21 million coins and an open ledger anyone can verify. The first time in history we've had digital scarcity without a gatekeeper.

It means different things to different people

Bitcoin's changing narratives

The "story" of Bitcoin evolved as it grew — and all of them are still alive at once.

2009
Cypherpunk experiment
2011
Peer-to-peer e-cash
2013
Censorship-resistant money
2017
Digital gold / store of value
2020+
Institutional macro asset
Bitcoin · live snapshot

Bitcoin by the numbers

0
BTC mined (~95% of 21M)
0
Block reward (BTC)
0
New BTC / day
0
Blocks / day (~1 / 10 min)
0
Full blockchain size
0
Reachable nodes
Annual inflation
~0.8%and falling — lower than gold
Figures as of mid-2026 · approximate, for teaching
Interactive · drag the slider

The Halving — programmed scarcity

In plain words

Every ~4 years the faucet of new bitcoins is turned half-off. Fewer new coins, forever — until the tap runs dry at 21 million.

Era
2024 – 2028
Block reward
3.125 BTC
2009→ scarcer over time →~2140
Mined by end of era: 19.9MShare of 21M: 95%
How big could it get?

Bitcoin's addressable market

If Bitcoin is "digital gold," the comparison is to the world's stores of value. The pools it could tap into are enormous.

Illustrative orders of magnitude · gold ~$30T, broad money ~$120T, Bitcoin ~$1.5T
The big objection

"Doesn't Bitcoin waste energy?"

In plain words

The energy isn't wasted — it's what buys the security. Like a vault's steel walls, the cost is the point. The real question is: is it worth it, and where does the power come from?

  • ◇ Bitcoin's footprint is comparable to other large industries (gold mining, data centres) — and a growing share is stranded / renewable energy.
  • Ethereum cut its energy use ~99.9% in 2022 by switching from proof-of-work to proof-of-stake ("The Merge").
Proof-of-Work secures the chain with electricity (Bitcoin). Proof-of-Stake secures it with capital at risk — validators post a deposit they lose if they cheat (Ethereum since 2022). PoS is far cheaper energetically; PoW proponents argue physical cost gives stronger, more "objective" security. Different trade-offs, not a settled debate.
Interactive · tap a card to focus

The two giants: Bitcoin vs Ethereum

In plain words

The #1 beginner question. Easiest mental model: Bitcoin = digital gold (money you store). Ethereum = a world computer (a platform you build apps on).

Bitcoin
digital gold · money
PurposeStore & move value
Think of it asDigital gold
SupplyFixed — 21M, ever
Secured byProof-of-Work (energy)
Smart contractsMinimal
Born2009 · Satoshi
You mostly hold it. The pitch: scarce, neutral money no one can debase or freeze.
Ξ
Ethereum
world computer · platform
PurposeRun programs (apps)
Think of it asA global app platform
SupplyNo hard cap (low issuance)
Secured byProof-of-Stake (capital)
Smart contractsYes — its whole point
Born2015 · Vitalik Buterin et al.
You build & use apps on it — NFTs, DeFi, stablecoins all live here. ETH pays the "gas" to run them.

Almost everything else (Solana, Cardano…) is a variation on one of these two ideas: better money, or a better/faster world computer.

03

Blockchain

The machine underneath. How a crowd of strangers keeps one honest ledger.

Motivation

So… why blockchain at all?

Nobody woke up wanting a blockchain. It's what you're forced to build to grant one wish: open, unstoppable money.

Open, unstoppable P2P payments everyone must agree on every transaction but strangers join, leave & lie solve it with proof-of-work which needs a reward to work = Bitcoin & the blockchain
The core problem

The Byzantine Generals problem

In plain words

How do strangers who don't trust each other — where some are outright liars — still agree on one single version of the truth?

Generals surround a city; they win only if they all attack together. Messengers can be intercepted; some generals are traitors. Reliable agreement over an untrusted network is the whole game.

Lamport (1982) framed it; for decades the fixes needed a known, fixed set of participants. Satoshi's twist — Nakamoto consensus — let an open, anonymous crowd agree by attaching a real cost (electricity) to proposing blocks, plus a reward for honesty. Lying becomes more expensive than cooperating. Agreement from incentives, not identity.
One idea, three eras

The evolution of the ledger

Centralized ledgerone keeper (your bank) — trust required
Distributed ledgermany copies — but who's in charge?
Blockchainmany copies + rules to agree, no one in charge

The leap isn't "copies everywhere" — it's agreeing on which copy is true without a referee.

Definition

What is a blockchain?

In plain words

A shared notebook everyone has a copy of. You can only add pages, never erase one — and the whole network checks every new page before accepting it.

The formal definition

"A tamper-proof, shared digital append-only ledger that records transactions grouped into blocks in a decentralized peer-to-peer network."

Interactive · type something

The magic ingredient: hashing

A hash is a one-way fingerprint. Change a single character and the entire fingerprint changes unpredictably — which is what makes tampering obvious.

Tiny input change → ~half the output bits flip. It's also one-way: trivial to compute the hash from the data, practically impossible to go backwards. Blocks are chained by each storing the previous block's hash — altering old data breaks every fingerprint after it. That's where "tamper-proof" comes from.
Type anything
↓ SHA-256 fingerprint
The mechanics

How a block is agreed — 5 steps

  1. 1A new transaction is broadcast to the whole network
  2. 2Each node collects pending transactions
  3. 3A node wins the right (via proof-of-work) to canonize "the truth" in a block
  4. 4Other nodes accept or reject it based on validity
  5. 5Acceptance = including that block's hash in the next block

Next slide: do step 3 yourself.

Interactive · mine a real block

Mine a block: proof-of-work

Type a transaction, hit Mine. Your browser hashes the block over and over — changing a number (the nonce) — until the hash starts with enough zeros. That hunt is proof-of-work. Real SHA-256, running locally.

Ready. Nonce starts at 0.
The hash depends on the transaction and the previous block's hash. To rewrite an old block you'd re-mine it and every block after it, faster than the whole planet mines new ones. With thousands of machines competing, that's hopeless — so the past is "tamper-proof." Bitcoin auto-tunes difficulty so a block lands roughly every 10 minutes.
Interactive · break the chain

Immutability by chaining

In plain words

Each block carries the previous block's fingerprint. Tamper with an old block and every fingerprint after it breaks — instantly, visibly, for everyone.

Click to edit an old block — watch the whole chain after it turn invalid.

Push vs pull

Bitcoin vs the card networks

Not just "faster vs slower" — a fundamentally different shape. Bitcoin pushes value directly. Cards pull it through a chain of middlemen.

Bitcoin — value is pushed

Con-
sumer
Mer-
chant

One direct step. The consumer sends; the merchant receives. Done.

Cards — value is pulled

Con-
sumer
Issuer Switch Acqui-
rer
Mer-
chant

The consumer thinks they're paying — really they authorize others to pull funds, each taking a cut.

Keeping copies in sync

What if two people add a page at once?

In plain words

The notebook briefly forks. The rule that fixes it: keep the longest chain. The version most of the network built on wins; the orphaned page is dropped.

#101 #102 ✓ #103 ✓ ← longest = winner
#102′ orphaned — dropped

This is why a payment grows "more final" with each block on top — reversing it gets exponentially harder.

Interactive · tap a corner

The scalability trilemma

In plain words

Pick any two. A blockchain struggles to be scalable, secure and decentralized all at once — improving one usually costs another.

You picked
Tap two corners to keep — see what you sacrifice.
Scalability Security Decentralization
Not all blockchains are open

Public vs consortium vs private

Public
Consortium
Private
Governance
No one
Several parties
One party
Access
Free, open
Permissioned
Permissioned
Consensus
PoW / PoS
PBFT etc.
PBFT etc.
Speed
Slower (~10 min)
Fast (seconds)
Fast (seconds)
Example
Bitcoin, Ethereum
R3, Hyperledger
Internal corp chain

The more open and trustless, the slower and more expensive. Enterprises often trade decentralization for speed.

The bigger shift

From Web2 apps to Web3 dApps

Web1 = read. Web2 = read + write (but platforms own your data). Web3 = read + write + own — you control your identity, data and assets.

Web 2.0
Web 3.0
Chrome
Brave
Dropbox / Drive
IPFS · Storj
Facebook / X
Steemit · Lens
PayPal
Wallets · DeFi
AWS
Ethereum · Solana
04

Using crypto — safely

You know how it works. Now the part that actually protects you: wallets, keys, and how not to get robbed.

Interactive · flip it

Who holds your crypto?

In plain words

Two ways to hold crypto: let a company keep it for you (like money in a bank), or hold it yourself (like cash in your pocket). The difference is who has the key.

🏦
A company holds the key for you. Easy — reset your password, call support. But you're trusting them not to freeze, lose, or get hacked. "Not your keys, not your coins."
Interactive · create one

What a wallet actually is

In plain words

A "wallet" doesn't hold coins — it holds keys. A public address you share to receive money, and a private key you guard to spend it. Click create — watch one appear.

Public address — share to receive ✅
— click create —
Private key — NEVER share 🔒
— click create —
Illustrative only — generated in your browser, not a real wallet.
Interactive · walk the steps

How do you actually buy crypto?

In plain words

Euros in your bank → an exchange (think "crypto broker") → buy → and the big choice: leave it there, or move it to your own wallet.

👆 Tap each step to see what happens — and the gotcha to watch for.
The big decision (step 5)
Leave it on the exchange = easy, but custodial (not your keys). Withdraw to your wallet = you control it. Same trade-off you just learned.
The master key

The 12 words that ARE your money

In plain words

Your whole wallet backs up to ~12 random words — the seed phrase. Anyone with these words owns everything inside. Lose them and it's gone forever. There's no "forgot password."

1 ridge2 cabin3 velvet4 ocean5 puzzle6 anchor7 garden8 silver9 mango10 forest11 ember12 rhythm
✅ Do
Write it on paper. Store it offline, somewhere safe (or two places).
⛔ Never
Screenshot it · type it into a website · email it · share it with "support."
Interactive · look one up

Everything is public

In plain words

Every transaction is on a public ledger anyone can read with a block explorer (like Etherscan). No login. Click a transaction to inspect it — this is a superpower for checking that something really happened.

🔍 explorer.example / tx
Click a transaction above to expand its details ↑
Interactive · tap real or scam

Spot the scam

In plain words

Crypto has no "undo" and no fraud department. Recognising scams is the security skill. Read each one — real or scam?

Score: 0 / 4 spotted
Your takeaway

Crypto hygiene — the 6 rules

Screenshot this slide. It's most of what keeps people safe.

1Your seed phrase goes on paper, never on a screen or website.
2No one legitimate ever asks for your seed phrase or private key. No one.
3"Guaranteed returns" and "send 1, get 2 back" are always scams.
4Check the website URL letter by letter. Bookmark the real ones.
5Start tiny. Send a test amount first. Transactions can't be reversed.
6Big holdings → a hardware wallet (offline). Slow down when money moves.
05

Smart contracts

How a blockchain goes from "just money" to "apps." This is where crypto meets the software engineering you're learning.

Interactive · use the machine

What is a smart contract?

In plain words

A vending machine, as code. Put the right input in, the rule runs automatically and gives the output — no cashier, no trust, no "let me check with my manager." It can't be stopped or changed once deployed.

🥤
a "buy a drink" contract
if (paid >= price) → release drink
waiting for input…
Interactive · tap a line

A real (tiny) smart contract

In plain words

This is real Solidity — a "tip jar" anyone can send money to, and only the owner can empty. Tap each line to see what it does. It's just code with rules.

👆 Tap a highlighted line to read it in plain English.

      
Interactive · tap a layer

How a dApp is built

In plain words

A "decentralized app" is mostly a normal web app. Same front-end you'll learn — only the database is swapped for a blockchain. Tap each layer.

👆 Tap a layer to see what it does — and whether it's "new" or stuff you already know.
The catch

Immutable cuts both ways

In plain words

A smart contract can't be stopped — which is the whole point, and also the danger. If there's a bug, it's public, permanent, and attackers can drain it before anyone fixes it.

Public code
Anyone can read it — including people hunting for flaws.
Can't patch it
Deployed = frozen. No "push a hotfix" like normal apps.
Real money
The DAO (2016) lost ~$60M to one bug. Audits exist for a reason.

This is exactly why security & auditing is one of the best-paid careers in crypto — and why the IT fundamentals you're learning matter here.

After class

Want to actually try it?

Everything here you can do for free, with no real money, on practice networks ("testnets"):

  • Remix — write & run a smart contract in your browser, zero setup.
  • MetaMask — a real wallet; switch it to a testnet to practice safely.
  • Sepolia testnet + faucet — free practice coins, real explorer.

Rule of thumb: learn on a testnet until you're bored. Then, and only then, touch real funds.

06

Beyond money

Smart contracts let a blockchain record anything of value — not just coins. NFTs and DeFi are smart contracts in action.

Tokens · ownership

Non-fungible tokens (NFTs)

In plain words

A blockchain receipt proving you own one specific digital thing — and that it's the original, not a copy.

NFTs use ERC-721 (vs ERC-20 for fungible tokens) to give each token a unique ID. The value isn't the picture — it's verifiable provenance, programmable royalties (creators earn on resale), and using a token as a key to membership, game items, tickets or real-world assets. Early examples: CryptoPunks, CryptoKitties.
Swap two of these →
Fungible. Swap them and nobody cares — every $1 bill is interchangeable. That's how money (and Bitcoin) works.
Where NFTs live

Virtual worlds & the metaverse

Gamers already spend billions on skins and items they don't truly own (Fortnite). If digital ownership is real, virtual land, items and identities become real, portable assets the platform can't quietly confiscate.

Go-deeper reading
Interactive · expand the branches

A unified token taxonomy

"Token" is a huge umbrella. Most fall into three families — tap each to expand.

Coin (BTC)Protocol tokenCentral-bank coin (CBDC)
Ownership / accessEconomic rightActivity rightReward · license
Security token (equity/debt)Real estateDerivativeDAO / economic share
07

Convergence: DeFi

Traditional finance, rebuilt as open software anyone can use, audit, or build on.

The trajectory

The evolution of finance

Traditional finance (TradFi)banks, brokers, clearinghouses
Fintechnicer apps on the same rails
Centralized crypto (CeFi)exchanges hold your coins
Decentralized finance (DeFi)no intermediary — only code

Each step removes a layer of trust you have to place in an institution.

Side by side

Traditional vs decentralized finance

Traditional financeDeFi
CustodyInstitution / custody providerYou — non-custodial wallet / smart contract
Unit of accountFiat currencyDigital asset or stablecoin
ExecutionVia intermediariesVia smart contract
Settlement~3–5 days, business hoursSeconds–minutes, 24/7
ClearingClearinghousesBlockchain transaction
GovernanceExchanges & regulatorsProtocol developers & users
AuditabilityAuthorized third-party auditsOpen source + public ledger — anyone
CollateralOften none; intermediaries take riskUsually over-collateralized
RisksHacks & data breachesSmart-contract bugs & exploits
How it's layered

The DeFi stack

DeFi is composable — each layer builds on the one below, like money Lego.

Wallets / front-endsMetaMask, mobile apps
Aggregatorsfind the best route / rate
DeFi primitivesDEXs, lending, derivatives
Oraclesbring real-world prices on-chain
Settlement layerEthereum & other L1s
Units of valueETH, stablecoins, wrapped assets
08

Stablecoins

The bridge between crypto and the dollar — and crypto's quiet killer app.

The idea

What is a stablecoin?

In plain words

Crypto dollars: the speed and openness of a blockchain, but a price that stays put at $1.

Fiat-backed
$1 in a bank per coin — USDT, USDC
Crypto-backed
Over-collateralized with crypto — DAI
Commodity-backed
Redeemable for gold etc. — PAXG
Algorithmic
Held by code & incentives — risky
In 2022 the algorithmic stablecoin Terra/UST collapsed from ~$18B to near-zero in days — no real dollars behind it, just a feedback loop that worked until confidence broke. The takeaway: a stablecoin is only as stable as what actually backs it. This is why regulators (and the 2025 US GENIUS Act) now focus on reserves and audits.
How to classify any stablecoin

A classification framework

Don't memorize names — ask four questions about any stablecoin:

Collateral
Fiat · crypto · commodity · none
Amount
Full · partial · over-collateralized
Mechanism
Reserve · dual-coin · algorithmic
Peg
Fiat · commodity · index
Market snapshot

A $320B+ market

Stablecoins are the workhorse of crypto — most trades and transfers move through them. Two issuers dominate.

0
Total stablecoin market cap
Illustrative shares, as of mid-2026 · USDT ~58%, USDC ~24%, others ~18%
Go deeper

Want the whole story?

I wrote Coinstory — the full arc of cryptocurrency, from 1970s cryptography and the cypherpunks to Bitcoin, Ethereum, NFTs and DeFi. Everything in this course, with the history and the people.

Read Coinstory → davidstancel.com
The end

Thank you

Questions, ideas, collaborations — always welcome.

david@amagilabs.io davidstancel.com

David Stancel · Digital Currencies & Blockchain