Bitcoin - Technical Architecture
Understand Bitcoin's blockchain structure, proof‑of‑work consensus, and wallet/security fundamentals.
Summary
Read Summary
Flashcards
Save Flashcards
Quiz
Take Quiz
Quick Practice
What is the name of the decentralized ledger where Bitcoin records its transactions?
1 of 23
Summary
Understanding Bitcoin's Technical Foundations
Introduction to Blockchain
Bitcoin operates on a revolutionary decentralized system called a blockchain—a shared, public ledger that records all transactions. Rather than trusting a single institution to maintain this ledger, Bitcoin's network uses cryptography and distributed consensus to ensure that everyone can verify the record is accurate and hasn't been tampered with.
At its core, Bitcoin solves a fundamental problem in digital currency: how can strangers exchange value without a trusted middleman? The answer lies in combining blockchain technology with a consensus mechanism called Proof-of-Work, which we'll explore in detail.
How the Blockchain Works
The blockchain is fundamentally an ordered chain of blocks. Each block contains:
A list of recent transactions
A cryptographic hash (created using SHA-256) of the previous block
A timestamp
This design creates a tamper-evident structure. If someone tries to modify a transaction in an old block, the block's hash changes. Since each subsequent block contains the hash of the previous block, changing anything in the past would require recalculating every single block that came after it—a computationally impossible task for an attacker without controlling most of the network's computing power.
A new block is created roughly every 10 minutes. This isn't a fixed rule—it's maintained through an automatic adjustment mechanism called the difficulty target, which we'll explore in the mining section. All nodes (computers running the Bitcoin network) maintain a complete copy of the blockchain and validate every new block to ensure no one is cheating.
Mining and Proof-of-Work Consensus
The consensus mechanism that secures Bitcoin is called Proof-of-Work. Here's how it works:
The Mining Process
Miners collect pending transactions from the network into a candidate block. To add this block to the chain, miners must solve a difficult computational puzzle. Specifically, they must find a special number called a nonce such that when the nonce is included in the block and the entire block is hashed, the resulting hash is lower than the network's difficulty target.
This is computationally hard to solve (requiring many attempts) but easy to verify. Once a miner finds a valid nonce, everyone else can instantly confirm that the solution is correct by computing the hash themselves.
Why This Secures the Network
This system is brilliant because:
An attacker wanting to modify past transactions would need to redo all the mining work for that block and every block after it
They would need to do this faster than the honest network adds new blocks
To reliably do this, they'd need to control more than 50% of the global hash power (a "51% attack")
The distributed mining power makes attacking the network prohibitively expensive for almost any actor.
Difficulty Adjustment
The difficulty target automatically adjusts every approximately 2 weeks (every 2,016 blocks) to keep the average block creation time near 10 minutes. If miners become faster (perhaps due to new hardware), the difficulty increases. If miners drop off the network, the difficulty decreases. This ingenious mechanism ensures consistent block times regardless of how much total computing power is dedicated to mining.
Mining Rewards
Miners are incentivized to participate through two sources of income:
Block reward: A predetermined amount of newly created bitcoin given to the miner who successfully creates a block
Transaction fees: Bitcoins left over when transaction inputs exceed outputs
The block reward started at 50 BTC and halves approximately every 4 years. This creates a predictable supply schedule that converges toward exactly 21 million bitcoins total, expected around the year 2140.
Bitcoin Addresses, Keys, and Transactions
How Bitcoin Addresses Work
Users control bitcoin through private keys—essentially very large random numbers kept secret. From a private key, mathematical operations generate:
A public key
A Bitcoin address (derived from hashing the public key)
An address is what you give others to receive bitcoin—it's like a bank account number. The corresponding private key is what proves you own the bitcoin at that address. Importantly, the mathematics are one-way: you cannot derive a private key from an address or public key.
Why Private Keys Matter
Losing your private key means permanently losing access to any bitcoin stored at that address. There is no "forgot password" recovery in Bitcoin. This is a serious security consideration: it's estimated that approximately 20% of all bitcoins ever created are irretrievably lost because their owners lost their private keys.
Transaction Structure
A bitcoin transaction is not simply "sending amount X to address Y." Instead, transactions work as follows:
Inputs: References to previous transactions' unspent outputs (UTXOs) that you control via your private key
Outputs: New bitcoin addresses receiving amounts of bitcoin
For example, imagine you own 5 BTC at one address and want to send 3 BTC to a friend. Your transaction would:
Input: reference your existing 5 BTC (proving you own it by signing with your private key)
Output 1: 3 BTC to your friend's address
Output 2: 2 BTC back to yourself (called "change")
If your inputs totaled 5 BTC and your outputs total 4.99 BTC, the missing 0.01 BTC becomes the transaction fee paid to miners. These fees incentivize miners to include your transaction in the next block.
Units and Divisibility
Bitcoin is divisible to 8 decimal places. The smallest unit, equal to one one-hundred-millionth of a bitcoin ($10^{-8}$ BTC), is called a satoshi (sat), named after Bitcoin's pseudonymous creator. While you can theoretically own fractions of a bitcoin, you cannot own less than one satoshi in any transaction.
Wallet Types: Storage and Security
How you store your private keys dramatically affects your security and convenience. Bitcoin offers several wallet options, each with different tradeoffs:
Full-Node Wallets
A full-node wallet like Bitcoin Core stores the entire blockchain (currently over 500 GB) on your computer. You validate every transaction and block yourself, trusting nothing except the code and your own verification. This is maximally trustless but requires significant storage and bandwidth.
Lightweight Wallets
Lightweight wallets don't store the full blockchain. Instead, they rely on remote servers to verify transactions. They're convenient and fast but require trusting those servers to give you accurate information. They're far more practical for most users.
Hot Wallets vs. Cold Storage
The distinction between hot and cold wallets concerns whether your private keys ever touch the internet:
Hot wallets (online services like exchanges) keep your private keys on internet-connected servers. This is convenient for frequent trading but exposes your keys to hacking. Several major exchanges have been hacked, resulting in stolen bitcoin.
Cold storage keeps private keys completely offline, either on hardware wallets (dedicated devices that never expose keys to the internet) or paper wallets (private keys printed on paper). This is maximally secure but less convenient for frequent transactions.
Privacy and Chain Analysis
Bitcoin's blockchain is entirely public—every transaction is visible to everyone. This transparency, while good for verifying the system's integrity, creates privacy challenges.
Chain Analysis
Sophisticated analysts can trace the flow of funds through the blockchain by analyzing transaction patterns. By connecting blockchain addresses to real-world identities (through exchange records, online behavior, or leaked data), they can track who transacted with whom.
Users can enhance privacy by generating a fresh address for each transaction, making it harder (though not impossible) to connect multiple transactions to one person.
Fungibility Concerns
In theory, all bitcoins are equal—the protocol treats them identically. However, in practice, some bitcoins become "tainted" through association with illicit activity. Some exchanges and services have refused to accept bitcoins linked to theft or criminal activity, creating a fungibility problem. Notably, Bitcoin's transparent ledger enables this kind of discrimination, unlike cash.
<extrainfo>
Scalability and Future Challenges
Bitcoin's design creates a fundamental capacity bottleneck: the original 1-megabyte block size limit restricts how many transactions can fit in each block. With blocks added every 10 minutes, this limits Bitcoin to roughly 7 transactions per second—far below what Visa or Mastercard can handle.
Higher transaction volume leads to:
Users competing to have their transactions included, driving up fees
Longer wait times for confirmation as transaction backlogs form
The Lightning Network represents one solution: a second-layer protocol allowing users to make fast, low-fee payments off-chain by opening payment channels with each other. Transactions settle on the main blockchain only when channels close.
Mining Pools and Centralization
Individual miners face a challenge: block rewards arrive infrequently and unpredictably. Mining pools solve this by allowing many miners to share computing power and split block rewards proportionally. However, this concentrates hash power in fewer entities.
In 2014, the mining pool Ghash.io briefly accumulated over 51% of Bitcoin's global hash power—a dangerous concentration. The mining community responded, and Ghash.io voluntarily capped its share at 39.99%. This incident highlighted the tension between decentralization ideals and the practical economics of mining.
</extrainfo>
Flashcards
What is the name of the decentralized ledger where Bitcoin records its transactions?
Blockchain
What two primary components does each block in the Bitcoin blockchain contain?
A list of transactions
A reference to the previous block’s hash
Roughly how often is a new block created in the Bitcoin network?
Every 10 minutes
What specific hashing algorithm is used to link blocks in the Bitcoin blockchain?
SHA-256
How do miners secure the Bitcoin network and add new blocks?
By solving cryptographic puzzles
What is the purpose of automatically adjusting the puzzle difficulty in Bitcoin mining?
To maintain an average block time of ten minutes
What specific value must a miner find to make a block's hash lower than the network's difficulty target?
A nonce
How frequently (in number of blocks) does the Bitcoin difficulty target adjust?
Every 2,016 blocks (approximately every two weeks)
What is the consequence of losing a Bitcoin private key?
Permanent loss of the associated Bitcoin
To how many decimal places is one bitcoin divisible?
Eight decimal places
What is the name of the smallest possible unit of Bitcoin, equal to one-hundred-millionth of a bitcoin?
Satoshi (sat)
What are the two components that make up a Bitcoin transaction?
Inputs (references to previous unspent outputs)
Outputs (new addresses receiving amounts)
In a transaction, what happens to the unused input satoshis that are not sent to an output or returned as change?
They become the transaction fee for miners
How often does the Bitcoin block reward halve?
Every 210,000 blocks
What is the maximum total supply of bitcoins that will ever exist?
21 million bitcoins
Around what year is the total supply of Bitcoin expected to be fully reached?
The year 2140
What two harmful actions would a 51% attack allow an entity to perform on the Bitcoin network?
Censorship
Double-spending
What process allows entities to trace the flow of funds and link Bitcoin addresses to real-world identities?
Chain analysis
What type of Bitcoin wallet stores the entire blockchain and verifies transactions locally?
Full-node wallet (e.g., Bitcoin Core)
What is the difference between Hot Wallets and Cold Storage regarding private key security?
Hot wallets hold keys on online servers; Cold storage keeps keys offline
What was the original block size limit that creates a capacity bottleneck in Bitcoin?
1 megabyte
What second-layer solution enables fast, low-fee Bitcoin payments off-chain?
The Lightning Network
What is the primary benefit for individual miners when joining a mining pool?
Receiving steadier rewards
Quiz
Bitcoin - Technical Architecture Quiz Question 1: What is the name of the decentralized ledger where Bitcoin records transactions?
- Blockchain (correct)
- Hashgraph
- Directed Acyclic Graph
- Distributed Database
Bitcoin - Technical Architecture Quiz Question 2: What activity do Bitcoin miners perform to add new blocks and secure the network?
- Solve cryptographic puzzles (correct)
- Validate digital signatures only
- Broadcast transaction fees
- Generate new addresses
Bitcoin - Technical Architecture Quiz Question 3: What cryptographic element held by users generates public keys and Bitcoin addresses?
- Private key (correct)
- Public key
- Hash of the address
- Nonce
Bitcoin - Technical Architecture Quiz Question 4: What happens if a Bitcoin private key is lost?
- Permanent loss of the associated Bitcoin (correct)
- Temporary inability to send Bitcoin for 24 hours
- Automatic transfer to a backup address
- Recovery through network consensus
Bitcoin - Technical Architecture Quiz Question 5: To how many decimal places can one Bitcoin be divided?
- Eight decimal places (correct)
- Six decimal places
- Ten decimal places
- Twelve decimal places
Bitcoin - Technical Architecture Quiz Question 6: What is the smallest possible unit of Bitcoin called, equal to one‑hundred‑millionth of a Bitcoin?
- Satoshi (correct)
- MilliBitcoin
- MicroBitcoin
- NanoBitcoin
Bitcoin - Technical Architecture Quiz Question 7: Which hash algorithm is used to link each Bitcoin block to its predecessor?
- SHA‑256 (correct)
- SHA‑1
- MD5
- Keccak‑256
Bitcoin - Technical Architecture Quiz Question 8: What are the two main components of a Bitcoin transaction?
- Inputs and outputs (correct)
- Signatures and timestamps
- Fees and rewards
- Hashes and nonces
Bitcoin - Technical Architecture Quiz Question 9: What becomes of unused input satoshis in a Bitcoin transaction?
- They become the transaction fee (correct)
- They are burned permanently
- They are automatically sent to the miner’s address
- They remain unspent and return to the sender’s balance
Bitcoin - Technical Architecture Quiz Question 10: What value must miners find that, when combined with block data, produces a hash below the difficulty target?
- Nonce (correct)
- Timestamp
- Merkle root
- Block height
Bitcoin - Technical Architecture Quiz Question 11: How often does Bitcoin adjust its difficulty target?
- Every 2,016 blocks (correct)
- Every 1,000 blocks
- Every 10,000 blocks
- Every 100 blocks
Bitcoin - Technical Architecture Quiz Question 12: What was the initial Bitcoin block reward and how often does it halve?
- 50 BTC; halves every 210 000 blocks (correct)
- 100 BTC; halves every 100 000 blocks
- 25 BTC; halves every 500 000 blocks
- 12.5 BTC; halves every 1 000 000 blocks
Bitcoin - Technical Architecture Quiz Question 13: What analytic technique uses Bitcoin’s public ledger to associate addresses with real‑world identities?
- Chain analysis (correct)
- Proof‑of‑stake tracking
- Mining pool profiling
- Hashrate comparison
Bitcoin - Technical Architecture Quiz Question 14: What type of wallet stores the entire blockchain and verifies transactions locally?
- Full‑node wallet (correct)
- Lightweight wallet
- Hot wallet
- Custodial wallet
Bitcoin - Technical Architecture Quiz Question 15: Which wallet type stores private keys online, increasing the risk of hacking?
- Hot wallet (correct)
- Cold storage
- Hardware wallet
- Paper wallet
Bitcoin - Technical Architecture Quiz Question 16: What storage method keeps private keys offline, protecting them from network attacks?
- Cold storage (correct)
- Hot wallet
- Cloud wallet
- Exchange custody
Bitcoin - Technical Architecture Quiz Question 17: What is the original Bitcoin block size limit?
- 1 megabyte (correct)
- 2 megabytes
- 500 kilobytes
- 4 megabytes
Bitcoin - Technical Architecture Quiz Question 18: Which mining pool voluntarily capped its hash power share at 39.99 % in 2014 after reaching 51 %?
- Ghash.io (correct)
- Slush Pool
- F2Pool
- BTC.com
What is the name of the decentralized ledger where Bitcoin records transactions?
1 of 18
Key Concepts
Bitcoin Fundamentals
Bitcoin
Bitcoin address
Satoshi (unit)
Block reward halving
Blockchain Technology
Blockchain
Proof‑of‑Work
SHA‑256
Mining
Transaction Solutions
Lightning Network
Cold storage
Definitions
Bitcoin
A decentralized digital currency that operates on a peer‑to‑peer network using a public ledger called the blockchain.
Blockchain
A distributed, append‑only ledger of blocks, each containing a cryptographic hash of the previous block.
Proof‑of‑Work
A consensus mechanism where miners solve computational puzzles to add new blocks and secure the network.
Bitcoin address
A string derived from a public key that is used to receive Bitcoin payments.
Satoshi (unit)
The smallest subdivision of a bitcoin, equal to one‑hundred‑millionth of a bitcoin.
SHA‑256
A cryptographic hash function used in Bitcoin to link blocks and secure transactions.
Mining
The process of aggregating transactions into blocks and performing proof‑of‑work to earn block rewards and fees.
Block reward halving
An event that reduces the Bitcoin block subsidy by half approximately every 210 000 blocks.
Lightning Network
A second‑layer protocol that enables fast, low‑fee Bitcoin transactions off‑chain.
Cold storage
The practice of keeping private keys offline, such as on hardware or paper wallets, to protect against theft.