RemNote Community
Community

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

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