How Bitcoin Works: Blockchain, Mining & Transactions Explained
Understand the technology behind Bitcoin. Learn how blockchain, mining, and transactions work together to power the world's largest cryptocurrency.
Uvin Vindula — IAMUVIN
Published 2026-01-05 · Updated 2026-01-20
How Bitcoin Works: The Technology Behind Digital Money
Bitcoin might seem like magic — send money to anyone, anywhere, without a bank. But behind the scenes, it runs on an elegant combination of cryptography, distributed computing, and economic incentives. In this guide, we'll pull back the curtain and explain exactly how Bitcoin works.
The Three Pillars of Bitcoin
Bitcoin relies on three core technologies working together:
- Blockchain — the public ledger that records all transactions
- Mining — the process that validates transactions and secures the network
- Cryptography — the math that makes it all tamper-proof
Understanding the Blockchain
The blockchain is a distributed ledger — a database that's shared across thousands of computers worldwide. Every Bitcoin transaction ever made is recorded on this ledger, and anyone can view it.
How Blocks Work
Transactions are grouped into blocks. Each block contains:
- A list of transactions (typically 1,500-3,000)
- A reference to the previous block (called a "hash")
- A timestamp
- A special number called a "nonce" (used in mining)
- The block reward transaction (new Bitcoin created)
Each block is approximately 1 MB in size and is created roughly every 10 minutes. The chain of blocks, each referencing the one before it, creates an immutable record stretching all the way back to the first block mined on January 3, 2009 — called the Genesis Block.
Why the Blockchain is Secure
Each block contains a cryptographic hash of the previous block. If someone tried to alter a transaction in block #500, it would change the hash of that block, which would invalidate block #501, #502, and every block after it. To successfully tamper with the blockchain, an attacker would need to redo the mining work for every subsequent block — and do it faster than the rest of the network combined. This is practically impossible.
How Bitcoin Transactions Work
Let's say you're in Colombo and want to send Bitcoin to a friend in Kandy. Here's what happens step by step:
Step 1: Creating the Transaction
You open your Bitcoin wallet and enter your friend's Bitcoin address (a long string of letters and numbers). You specify the amount and a transaction fee. Your wallet software creates a transaction and signs it with your private key — proving you own the Bitcoin you're sending.
Step 2: Broadcasting to the Network
Your signed transaction is broadcast to the Bitcoin network. It enters the mempool (memory pool) — a waiting area for unconfirmed transactions. Thousands of nodes around the world receive and validate your transaction.
Step 3: Validation by Nodes
Each node checks:
- Is the digital signature valid?
- Does the sender actually have enough Bitcoin?
- Is this a double-spend attempt?
- Does the transaction follow all protocol rules?
Step 4: Inclusion in a Block
Miners select transactions from the mempool (typically prioritizing those with higher fees) and include them in the block they're trying to mine. Once a miner successfully mines the block, your transaction is confirmed.
Step 5: Confirmations
After your transaction is included in a block, each new block added on top provides an additional confirmation. Most services consider a transaction final after 6 confirmations (about 60 minutes), though for small amounts, 1-2 confirmations may suffice.
| Confirmations | Time (approx.) | Security Level |
|---|---|---|
| 0 (unconfirmed) | 0 min | Low — risky for merchants |
| 1 | ~10 min | Moderate — fine for small amounts |
| 3 | ~30 min | Good — suitable for most transactions |
| 6 | ~60 min | High — industry standard for large amounts |
How Bitcoin Mining Works
Mining is the engine that powers the Bitcoin network. Miners compete to solve a computational puzzle, and the winner gets to add the next block to the blockchain and receive the block reward (currently 3.125 BTC as of 2024's halving).
The Mining Process
- Miners collect pending transactions from the mempool
- They assemble these into a candidate block
- They repeatedly hash the block header with different nonce values
- The goal: find a hash that starts with a certain number of zeros
- First miner to find a valid hash wins the block
- Other miners verify and accept the new block
Difficulty Adjustment
Every 2,016 blocks (approximately two weeks), the Bitcoin protocol automatically adjusts the mining difficulty. If blocks are being found too quickly (more miners have joined), difficulty increases. If too slowly, it decreases. This ensures blocks are found approximately every 10 minutes regardless of how much computing power is on the network.
Mining Hardware Evolution
| Era | Hardware | Hash Rate |
|---|---|---|
| 2009-2010 | CPUs (regular computers) | Millions of hashes/sec |
| 2010-2013 | GPUs (graphics cards) | Billions of hashes/sec |
| 2013-2015 | FPGAs | Tens of billions/sec |
| 2015-Present | ASICs (specialized chips) | Trillions of hashes/sec |
Cryptography in Bitcoin
Public and Private Keys
Bitcoin uses Elliptic Curve Digital Signature Algorithm (ECDSA) for its key system. You have a private key (kept secret) and a public key (shared with others). Your Bitcoin address is derived from your public key.
When you send Bitcoin, you sign the transaction with your private key. Anyone can verify the signature using your public key, but they cannot reverse-engineer your private key from it. This is the mathematical foundation that makes Bitcoin secure.
SHA-256 Hashing
Bitcoin uses the SHA-256 hash function extensively — in mining, in creating addresses, and in linking blocks together. A hash function takes any input and produces a fixed-size output that appears random. Even changing one character in the input produces a completely different hash.
The Role of Nodes
Not all participants in the Bitcoin network are miners. Nodes are computers that store a full copy of the blockchain and validate transactions and blocks. There are currently over 15,000 reachable nodes worldwide.
Nodes enforce the rules of Bitcoin. If a miner tries to create Bitcoin out of thin air or include an invalid transaction, nodes will reject that block. This separation of powers between miners and nodes is crucial to Bitcoin's decentralization.
Why This Matters for Sri Lankans
Understanding how Bitcoin works helps you make informed decisions. In a country where the banking system can be restrictive and currency volatility is a real concern, knowing the technology gives you confidence. When someone tells you about a "new Bitcoin" or a "better blockchain," you'll have the knowledge to evaluate those claims critically.
Explore our Bitcoin tools to see these concepts in action, or visit our learning center for more in-depth guides.
⚠️ Disclaimer: This article is for educational purposes only. It is not financial advice. Always do your own research (DYOR) before making any investment decisions.

By Uvin Vindula — IAMUVIN
Sri Lanka's leading Bitcoin educator. Author of "The Rise of Bitcoin".
Learn more →Related Articles
The Bitcoin Brief: LK
Weekly Bitcoin insights, market analysis, and Sri Lanka crypto news. Join 1,000+ readers.
Unsubscribe anytime · Educational content only