Crypto &
Blockchain Technology
A structured, progressive guide to understanding how decentralized networks, digital currencies, and blockchain technology actually work — from first principles to real-world applications.
What Is a Blockchain?
A blockchain is a special type of database — one that is distributed, append-only, and secured through cryptography. Understanding its structure is the key to everything else in crypto.
Blocks
Each block contains a batch of transactions, a timestamp, and a reference to the block before it (its hash). Think of it like a page in a ledger.
The Chain
Blocks are linked sequentially. Changing any historical block would break its hash, invalidating every block after it — making tampering extremely difficult.
Distributed Network
Thousands of computers (nodes) each hold a full copy of the chain. There's no single server or company in control — it's collectively maintained.
Immutability
Once data is written to the chain and enough blocks are added on top, it becomes practically impossible to alter without the consensus of the network.
How a Block Is Formed
-
Transactions are broadcastWhen someone sends crypto, that transaction is announced to the peer-to-peer network and sits in a pool of unconfirmed transactions called the mempool.
-
Miners or validators pick them upDepending on the network, either miners (PoW) or validators (PoS) select transactions from the mempool to bundle into a candidate block.
-
The block is verified and addedThe network's consensus rules are applied. If everything checks out, the block is appended and the miner/validator is rewarded with new coins.
-
Confirmations accumulateEach subsequent block added on top of your transaction is a "confirmation." More confirmations = more security. Most exchanges require 3–6 for Bitcoin.
How Crypto Works
Cryptocurrency is the native currency of a blockchain network. It's secured by math — specifically public-key cryptography — not by institutions or governments.
Public Key Cryptography
You have a private key (secret, never shared) and a public key (shareable, like an address). Funds sent to your public address can only be spent with your private key.
Digital Signatures
When you send crypto, you "sign" the transaction with your private key. The network can verify this signature using your public key — without ever seeing the private key.
Hashing
A hash function takes any input and produces a fixed-length string. The same input always produces the same hash. Even a tiny change completely changes the hash — detecting tampering.
UTXOs vs. Accounts
Bitcoin uses UTXOs (unspent outputs — like bills). Ethereum uses an account model (like a bank balance). Different trade-offs in privacy and programmability.
A Bitcoin Transaction, Step by Step
-
You initiate a sendYou specify the recipient's public address and the amount. Your wallet software constructs the transaction.
-
Your wallet signs itThe transaction is signed with your private key, proving you own the funds — without revealing the key itself.
-
Broadcast to the networkYour wallet sends the signed transaction to connected nodes, which relay it across the network to miners.
-
Confirmed in a blockA miner includes it in a block. After ~10 minutes (one Bitcoin block time), the transaction appears on the blockchain.
Consensus Mechanisms
How does a leaderless network of strangers agree on a shared truth? Consensus mechanisms are the rules that make this possible — and they're a major differentiator between blockchains.
| Mechanism | How It Works | Used By | Energy Use | Trade-offs |
|---|---|---|---|---|
| Proof of Work PoW |
Miners compete to solve a hard math puzzle. First to solve it adds the block and earns the reward. | Bitcoin, Litecoin | Very High | Most battle-tested; expensive to attack; slow; energy intensive |
| Proof of Stake PoS |
Validators lock up ("stake") coins as collateral. Chosen proportionally to stake to propose blocks. | Ethereum, Solana, Cardano | Low | Energy efficient; faster; some argue more centralization risk |
| Delegated PoS DPoS |
Token holders vote for a small set of delegates who validate on their behalf. | EOS, Tron | Low | Very fast; more centralized by design |
| Proof of History PoH |
Cryptographic clock creates a historical record, allowing validators to verify event ordering without communication overhead. | Solana | Low | Extremely fast; complex; has experienced outages |
Major Cryptocurrencies
Not all crypto is the same. Different coins and tokens serve very different purposes — from digital gold to programmable platforms to stable stores of value.
| Asset | Ticker | Primary Purpose | Consensus | Key Feature |
|---|---|---|---|---|
| Bitcoin | BTC |
Store of value, digital gold | PoW | Fixed supply of 21M coins; most decentralized |
| Ethereum | ETH |
Smart contract platform | PoS | Programmable; foundation of DeFi and NFTs |
| Solana | SOL |
High-speed smart contracts | PoH + PoS | ~65,000 TPS; very low fees; used for gaming and DeFi |
| USD Coin | USDC |
Stablecoin (USD-pegged) | — | 1 USDC = $1; issued by Circle; widely used in DeFi |
| Chainlink | LINK |
Decentralized oracle network | PoS | Connects smart contracts to real-world data |
| Polygon | MATIC |
Ethereum scaling (Layer 2) | PoS | Faster/cheaper Ethereum transactions via sidechains |
Exchanges & Platforms
To buy, sell, or trade crypto, most people start with a centralized exchange. Understanding the landscape — and the key trade-offs — is essential before putting real money in.
Coinbase
Largest US-regulated exchange. Beginner-friendly UI, insured custodial accounts, publicly traded (COIN). Also offers Coinbase Advanced for lower fees and more control.
Binance
World's largest exchange by volume. Huge asset selection, very low fees, advanced trading tools. US version (Binance.US) has fewer features due to regulation.
Kraken
US-based, strong security track record, good for experienced traders. Offers staking, futures, and margin trading. Known for transparency.
Uniswap (DEX)
Decentralized exchange on Ethereum. No sign-up, no custody — you trade directly from your wallet. Uses automated market makers (AMMs) instead of order books.
CEX vs. DEX
| Feature | Centralized (CEX) | Decentralized (DEX) |
|---|---|---|
| Custody | Exchange holds your funds | You hold your own funds |
| KYC Required | Yes (ID verification) | No — just a wallet |
| Ease of Use | Very beginner-friendly | Requires crypto knowledge |
| Asset Selection | Curated list | Any token with a pool |
| Risk | Exchange hack, insolvency (FTX) | Smart contract bugs, MEV |
| Fees | 0.1%–1.5% per trade | 0.05%–0.3% + gas fees |
Wallets & Keys
Your wallet is your identity and your vault in the crypto world. Understanding how wallets work is critical — lose your private key, lose your crypto, permanently.
Hot Wallets
Connected to the internet. Convenient for frequent use. Examples: MetaMask (browser), Phantom (Solana), Coinbase Wallet. Higher risk of remote attack.
Cold Wallets
Offline hardware devices. Ledger and Trezor are the standards. Private keys never touch an internet-connected device. Best for large holdings.
Seed Phrases
A 12 or 24 word mnemonic that represents your private key. Write it on paper, store it safely. Anyone with your seed phrase controls your funds — forever.
Custodial Wallets
The exchange holds your keys. Convenient and recoverable if you forget your password — but you're trusting a third party with your assets.
Smart Contracts
Smart contracts are self-executing programs stored on a blockchain. They run automatically when predefined conditions are met — no intermediary required. They are the engine behind DeFi, NFTs, and DAOs.
What They Are
Code deployed to the blockchain that executes deterministically. Once deployed, they can't be changed (unless built with upgrade patterns). Think of them as vending machines: input → output, guaranteed.
How They're Built
Most Ethereum smart contracts are written in Solidity. Solana uses Rust. They're compiled to bytecode and deployed to the network, where every node runs them identically.
Gas Fees
Every operation in a smart contract costs gas — a unit of computation. Users pay gas in ETH. Complex contracts cost more gas. This prevents infinite loops and spam.
Oracles
Smart contracts can't access real-world data on their own. Oracles (like Chainlink) feed external data — price feeds, weather, sports scores — onto the chain so contracts can use it.
Smart Contract Lifecycle
- Write & testDeveloper writes the contract in Solidity, tests it on a local environment (Hardhat, Foundry) and testnets like Sepolia.
- AuditSerious contracts undergo third-party security audits. No audit = major red flag for users and investors.
- DeployThe contract is deployed to mainnet. It receives a permanent address and its code is now immutable on the blockchain.
- InteractAnyone can call the contract's functions by sending transactions to its address. The code runs on every validating node.
DeFi — Decentralized Finance
DeFi is the umbrella term for financial services — lending, borrowing, trading, earning yield — built on smart contracts. No banks, no accounts, no permission needed. Just a wallet and an internet connection.
AMMs & DEXs
Automated Market Makers like Uniswap replace order books with liquidity pools. Prices are set by a formula (x * y = k). Anyone can provide liquidity and earn fees.
Lending & Borrowing
Aave and Compound let you deposit assets to earn interest, or borrow against collateral. All overcollateralized — you must deposit more than you borrow.
Yield Farming
Providing liquidity or staking in protocols to earn token rewards on top of fees. High yields often signal high risk — many farms collapse when reward tokens lose value.
Flash Loans
Loans with zero collateral that must be borrowed and repaid in a single transaction block. Used for arbitrage and liquidations — and unfortunately for many exploits.
| Protocol | Category | Chain | What It Does |
|---|---|---|---|
| Uniswap | DEX | Ethereum, L2s | Token swaps via liquidity pools; most widely forked DEX |
| Aave | Lending | Multi-chain | Deposit to earn, borrow with collateral, flash loans |
| Curve | DEX | Multi-chain | Optimized for stablecoin swaps with minimal slippage |
| MakerDAO | Stablecoin | Ethereum | Issues DAI — a decentralized USD-pegged stablecoin backed by crypto collateral |
| Lido | Staking | Ethereum | Liquid staking — stake ETH and receive stETH you can use in DeFi |
Layer 2 & Scaling
Blockchains face a fundamental trade-off: security, decentralization, and scalability — you can only fully optimize two at once. This is the scalability trilemma. Layer 2 solutions are how the industry works around it.
What Is Layer 2?
A secondary network built on top of a base chain (L1) like Ethereum. It processes transactions off-chain and periodically settles results back to L1, inheriting its security.
Optimistic Rollups
Assume transactions are valid by default. A challenge period (7 days) allows anyone to dispute fraud. Used by Optimism and Arbitrum. Simpler, widely adopted.
ZK Rollups
Use cryptographic proofs (zero-knowledge proofs) to mathematically verify every batch of transactions. Faster finality, more complex. Used by zkSync, StarkNet, Polygon zkEVM.
Bridges
Move assets between L1 and L2, or between different chains. Bridge smart contracts are a major attack surface — billions have been lost in bridge hacks.
| L2 Network | Type | Finality | Notable For |
|---|---|---|---|
| Arbitrum One | Optimistic | ~7 days | Largest L2 by TVL; EVM compatible |
| Optimism | Optimistic | ~7 days | OP Stack used by Coinbase's Base chain |
| Base | Optimistic | ~7 days | Coinbase-built L2; fast growing consumer chain |
| zkSync Era | ZK | Minutes | Full EVM compatibility with ZK proofs |
| StarkNet | ZK | Minutes | Uses Cairo language; high throughput |
Regulation & Taxes
Crypto operates in an evolving regulatory landscape. In the US, the IRS treats crypto as property — not currency — which has significant tax implications for every transaction you make.
Crypto as Property
The IRS classifies crypto as property. Every taxable event — selling, trading, spending — triggers a capital gain or loss based on your cost basis (what you paid) vs. the value at time of transaction.
Capital Gains
Short-term (held <1 year): taxed as ordinary income (up to 37%). Long-term (held >1 year): taxed at 0%, 15%, or 20% depending on income. Holding longer is almost always better tax-wise.
Staking & Yield Income
Staking rewards, interest, and yield farming income are generally taxed as ordinary income at the time you receive them — at fair market value on that date.
Record Keeping
You're responsible for tracking every transaction. Tools like Koinly, CoinTracker, and TaxBit can import your history from exchanges and wallets to generate tax reports.
| Event | Taxable? | Type |
|---|---|---|
| Buy crypto with USD | No | Sets your cost basis |
| Sell crypto for USD | Yes | Capital gain or loss |
| Trade crypto for crypto | Yes | Capital gain or loss on the sold asset |
| Spend crypto on goods | Yes | Capital gain or loss |
| Receive staking rewards | Yes | Ordinary income at receipt |
| Transfer between your own wallets | No | Not a taxable event |
| Gift crypto (under annual limit) | No | Recipient inherits your cost basis |
Security & Scams
In crypto, there's no fraud department to call and no chargebacks. Transactions are irreversible. This section may be the most practically important in the entire guide.
Phishing
Fake websites, emails, and Discord/Telegram messages mimicking legitimate projects. Always verify URLs character by character. Bookmark sites you use regularly. Never click links in DMs.
Rug Pulls
Developers launch a token, hype it, accumulate investment, then drain the liquidity pool and disappear. Red flags: anonymous team, no audit, locked liquidity expiring soon, unrealistic APYs.
Honeypot Contracts
Smart contracts that let you buy a token but block you from selling. The price rises, you can't exit. Always check if a token is sellable on DEXTools or Token Sniffer before buying.
Social Engineering
"Tech support" impersonators, fake giveaways (Elon-style), romance scams, and pig butchering — long-term relationship-building to gain trust before stealing funds. Very sophisticated and effective.
Malicious Approvals
When you interact with DeFi, you sign token approvals. A malicious contract with unlimited approval can drain your wallet later. Use Revoke.cash to audit and revoke approvals regularly.
Fake Airdrops
Tokens appear in your wallet out of nowhere. Interacting with them (swapping, approving) triggers a malicious contract. Rule: if you didn't expect it, don't touch it.
DAOs & Governance
A DAO — Decentralized Autonomous Organization — is a community governed by smart contracts and token-holder votes rather than a board of directors or CEO. It's one of the most radical experiments in organizational structure ever attempted.
How Voting Works
Governance token holders submit and vote on proposals. Voting power is typically proportional to tokens held or delegated. Votes execute automatically via smart contracts if they pass.
Treasuries
DAOs often control large on-chain treasuries — sometimes billions of dollars — funded by protocol revenue or token sales. The DAO votes on how to spend it: grants, development, investments.
Delegation
Most token holders don't vote. Delegation lets you assign your voting power to an active participant (a "delegate") who votes on your behalf — similar to representative democracy.
Governance Attacks
A large token holder (or attacker who borrows tokens) can pass malicious proposals. The Beanstalk exploit (2022) used a flash loan to gain majority voting power and drain $182M in a single transaction.
| DAO | Protocol | Treasury | Known For |
|---|---|---|---|
| Uniswap DAO | UNI token | ~$4B+ | Controls Uniswap fee switches and grants |
| MakerDAO | MKR token | Billions in collateral | Governs DAI stablecoin parameters and collateral types |
| Aave DAO | AAVE token | ~$300M+ | Votes on risk parameters, new asset listings |
| Arbitrum DAO | ARB token | ~$3B+ | Governs Arbitrum L2 development and grants |
| ENS DAO | ENS token | ~$500M+ | Governs Ethereum Name Service domain system |
Reading the Market
Crypto markets are open 24/7, globally accessible, and notoriously volatile. Understanding how to read on-chain data, market cycles, and key indicators helps you avoid emotional decisions and spot meaningful signals.
On-Chain Analytics
Unlike stock markets, blockchain data is fully public. Tools like Glassnode, Nansen, and Dune Analytics let you track wallet flows, exchange inflows, and whale movements in real time.
Market Cycles
Crypto historically follows 4-year cycles loosely tied to Bitcoin's halving — when mining rewards are cut in half. Bull markets typically follow halvings; bear markets follow all-time highs.
Bitcoin Dominance
BTC's share of total crypto market cap. High dominance (~60%+) = risk-off, people fleeing to Bitcoin. Low dominance = "altcoin season" when smaller coins tend to outperform.
Fear & Greed Index
A 0–100 composite score of market sentiment (volatility, momentum, social media, dominance). Extreme fear (0–25) is historically a good accumulation signal. Extreme greed (75–100) = caution.
Key Metrics to Know
| Metric | What It Measures | Bullish Signal | Bearish Signal |
|---|---|---|---|
| MVRV Ratio | Market value vs. realized value (avg cost basis of all BTC) | MVRV < 1 (market below cost basis) | MVRV > 3.5 (historically near tops) |
| Exchange Reserves | Amount of BTC/ETH held on exchanges | Declining (coins moving to cold storage) | Rising (sell pressure building) |
| Funding Rate | Cost of holding leveraged futures positions | Negative (shorts paying longs) | Very high positive (over-leveraged longs) |
| NVT Ratio | Network Value to Transaction volume — like P/E for crypto | Low NVT (undervalued vs. usage) | High NVT (price disconnected from utility) |
| Open Interest | Total value of open derivatives contracts | Moderate growth with price | Extremely high (liquidation cascade risk) |