How Bitcoin Works
- 34Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is Bitcoin?
A fully digital currency with no government issuer or central bank. No banks verify transactions; it uses decentralized trustless verification. The inventor is unknown. It was the first cryptocurrency.
Or swipe the card
34 cards
What is Bitcoin?
A fully digital currency with no government issuer or central bank. No banks verify transactions; it uses decentralized trustless verification. The inventor is unknown. It was the first cryptocurrency.
How does a communal ledger system work for tracking payments among friends?
Participants maintain a public ledger recording intended payments (e.g., 'Alice pays Bob $20'). At the end of a month, they settle up: those who spent more than received pay in, those who received more take out.
How does the system prevent overspending on a ledger?
Before accepting a transaction, verify that the sender has sufficient balance based on the full history of transactions. If a sender tries to spend more than they have, the transaction is invalid.
What are 'Ledger Dollars' (LD)?
A unit of value on the communal ledger that is independent of real-world currency. People can exchange ledger dollars for real dollars voluntarily, but it's not guaranteed by the protocol.
What is a cryptocurrency?
A decentralized digital currency that uses cryptography for security and typically operates on a blockchain. Bitcoin is the first implemented example.
According to the text, why should someone understand the technical details of Bitcoin?
Because anyone looking to buy a cryptocurrency should know what it actually is, not just analogies. Understanding the fundamentals helps in evaluating newer cryptocurrencies and recognizing design choices.
What is a limitation of Bitcoin compared to Visa?
Bitcoin processes about 4 transactions per second (about 2400 per block every 10 minutes), while Visa averages 1700 per second with a capacity over 24,000 per second.
How does Bitcoin's block time compare to many newer cryptocurrencies?
Bitcoin's average block time is 10 minutes; many newer cryptocurrencies have much shorter block times for faster confirmations.
How do digital signatures solve the problem of unauthorized transactions?
Each person generates a public-private key pair. The sender signs the transaction using her private key, producing a signature that depends on the message. Anyone can verify the signature using the sender's public key, which checks that it was produced by the corresponding private key.
What are public and private keys in digital signatures?
A private key (secret key, SK) is kept secret by the owner. A public key (PK) is shared publicly. They are a pair of strings of bits. The private key is used to sign; the public key is used to verify.
Why are digital signatures stronger than handwritten signatures?
A digital signature changes for each message because it depends on the message content. Handwritten signatures look the same regardless of document. This prevents copying a signature to another document.
How long is a typical digital signature? Why is it secure?
Typically 256 bits. There are 2^256 possible signatures, an astronomically large number, making brute-force guessing infeasible.
How does the system prevent replay attacks, where someone copies a valid transaction-signature pair?
Include a unique transaction ID in the signed message. Each transaction has a different ID, so copying the same signed line requires a new signature.
What is a cryptographic hash function? Give an example.
A function that takes an arbitrary message and outputs a fixed-length string of bits (e.g., SHA256 outputs 256 bits). It is deterministic, one-way (infeasible to invert), and unpredictable: a small change in input completely changes the output.
What property of a cryptographic hash function makes it 'one-way'?
Given a hash output, it is computationally infeasible to find any input that produces that hash. The only method is brute-force guessing and checking.
Where is the SHA256 hash function commonly used besides Bitcoin?
In secure connections for browsers (HTTPS) and online banking to ensure security.
What is the core problem that Bitcoin solves?
In a distributed ledger where everyone keeps their own copy, how do all participants agree on the correct transaction history (order and content) without relying on a central authority?
What is Bitcoin's solution for achieving decentralized consensus?
Trust the blockchain (ledger) with the most computational work (the longest chain). Each block contains a proof of work that requires significant computation to create but is easy to verify.
What is a 'proof of work' in the context of Bitcoin?
A number (nonce) that, when combined with the block data, produces a hash starting with a specific number of zeros. Finding it requires many guesses; verifying it requires only one hash computation.
How is a blockchain structured in Bitcoin?
It consists of blocks chained together. Each block contains a list of transactions, a nonce (proof of work), and the hash of the previous block. This ordering ensures that altering any block requires redoing the work for all subsequent blocks.
What is the longest chain rule in Bitcoin?
If a node receives two conflicting blockchains, it trusts the one with the most cumulative work (i.e., the longest chain). If there is a tie, the node waits until one chain becomes longer.
How does new money enter the Bitcoin system?
Through block rewards. Miners can include a special transaction in a new block that creates new Bitcoins out of thin air, rewarding themselves for creating the block.
Who can create a block in Bitcoin? What do they do?
Anyone (miners). They listen for transactions, collect them into a block, perform proof of work by guessing nonces until they find one that makes the block hash start with enough zeros, then broadcast the block.
What is the block reward?
A special transaction included at the top of a block that creates new Bitcoins out of thin air, given to the miner who created the block. It is an exception to the rule that transactions must be signed by the sender.
Why is mining often compared to a lottery?
Many miners guess nonces as fast as they can. Only one miner finds a valid proof of work for a given block, and that miner wins the block reward. The probability of winning is proportional to the miner's computational power.
How does Bitcoin adjust mining difficulty?
The number of leading zeros required in the block hash is adjusted periodically so that on average, a new block is found every 10 minutes, regardless of the total computing power of the network.
How does the Bitcoin block reward change over time?
The block reward halves every 210,000 blocks (approximately every 4 years). It started at 50 BTC, then 25, 12.5, etc. This geometrically decreasing reward ensures the total supply of Bitcoin will never exceed 21 million.
What are transaction fees in Bitcoin? Why are they used?
When making a transaction, a sender can optionally include a fee that goes to the miner of the block that includes the transaction. Fees incentivize miners to include the transaction in their block, especially since each block has limited space (~2400 transactions).
What is the total supply limit of Bitcoin?
21 million BTC. Because the block reward halves over time, the total approaches but never exceeds 21 million.
How can an attacker try to fool a Bitcoin user with a fraudulent transaction? What makes it difficult?
The attacker can mine a private fork containing a transaction paying the victim, but not broadcast that block. To keep the victim believing that fork, the attacker must continue mining blocks faster than the rest of the network combined. Unless the attacker has >50% of total hash power, the legitimate chain will grow faster and the victim will eventually switch.
When should a Bitcoin transaction be considered confirmed?
After several new blocks have been added on top of the block containing the transaction. If no longer chain appears, the transaction is considered secure because altering it would require redoing the work of all subsequent blocks.
What is a 51% attack?
If a miner or group controls more than half of the network's hash power, they could potentially outpace the honest chain and reverse transactions or prevent confirmations.
What is the double-spending problem?
The risk that a digital currency can be spent more than once. Bitcoin solves it through the proof-of-work blockchain, where the longest chain determines the valid history.
How can an attacker attempt a double-spend?
The attacker creates a separate fork containing a transaction paying a merchant, while still broadcasting the same coins to another recipient on the main chain. If the attacker's fork becomes longer, the merchant's transaction is reversed.

Ask anything
We've read this whole study set, so questions about it get the best answers.