Bitcoin Flashcards

1
Q

Intermediary Based Model
Centralized Classical model

A

The (trust-worthy) clearing house decides whether the transaction partners have paid the transaction and
respectively have received the mone.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Intermediary Based Model
decentralized model

A

Double spending problem –> The network timestamps transactions by collecting them into a chain forming a
record that cannot be changed

 Ledger: The blockchain is a chain of digital signatures

 Everybody in the peer-to-peer network is aware of all
transactions and can judge whether the transactions are
valid or not

 Anonymity: All transactions and blocks are hashed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Sha256

A

Under SHA256 the output string has 64 hexa-decimal
digits, i.e. 256 binary digits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

SHA 256 -64 Hexadecimal DigitsEqual 256 Bit

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is proof of work?

A

Proof of Work is a system in which network participants (called miners) compete to solve a complex mathematical puzzle. The first one to solve it gets to:

Propose the next block in the blockchain,

Receive a block reward (newly minted coins + transaction fees),

And have their solution verified by others.

The puzzle must be computationally expensive to solve but easy to verify. This asymmetry is crucial.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Base58 encoding in Bitcoin?

A

Used for legacy addresses (starting with “1” or “3”)

Encodes binary using 58 alphanumeric characters, avoiding confusing ones (like 0, O, I, l)

Applied via Base58Check encoding with checksum

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Base32 (Bech32) encoding in Bitcoin?

A

Used in native SegWit addresses (starting with “bc1”)

Encodes using 32 lowercase characters for QR-friendliness and error correction

More efficient and robust than Base58

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Ether Block

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Etherium Prood of Stake

A

In Ethereum’s Proof of Stake (PoS) era (post-merge, 2022), blocks are produced every 12 seconds on average.

The confirmation time refers to how long it took from the previous block being finalized until this block was added to the chain.

It’s known because:

Each block stores the timestamp of when it was produced.

The time difference between adjacent blocks tells us how long confirmation took.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Oldest Analog Blockchain

A

 Haber and Stornetta (1991), Journal of Cryptology,
realized that a newspaper could serve as a public ledger
 Every week, the time-stamping service Surety took all the
hash values and boiled them down into a hexadecimal
number
 Published an up-to-date hash value in an ad section of
The New York Times every week since 1995
 Almost impossible for anyone—including Surety—to
backdate timestamps or validate electronic records that
were not exact copies of the original

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Operational Principles of a Blockhain as Public, Decentralized Ledger?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a nonce?

A

The nonce is a random number that miners change repeatedly until the hash meets a specific difficulty condition—usually a certain number of leading zeros.

As the number of required leading zeros increases, the difficulty and time to solve the hash increases exponentially.

This mimics the mining process in Bitcoin. Miners search for a nonce that, when hashed with the block’s data, produces a hash below a given target (i.e., starts with enough zeros).

This work ensures that block creation takes time and effort, deterring manipulation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

PoW Puzzle?

A

Miners must find a nonce that produces a block hash with 19 leading zeros (Bitcoin’s actual difficulty varies, but this is illustrative).

This can require millions or billions of tries, depending on the difficulty.

The process ensures fairness and security by making it expensive to forge or spam the network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Crypto Energy Consumption

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What caused Ethereum’s energy consumption to drop after 2022?

A

Ethereum switched from Proof of Work to Proof of Stake, eliminating the need for mining and drastically reducing energy use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Three Objectives of PoW (Consensus Mechanism)?

A

Achieve agreement:
All nodes trust the latest version of the chain.

Prevent double spending:
By reviewing every transaction, no one can spend the same coin twice.

Incentivize self-regulation:
Rewards are given to miners who follow the rules; cheating costs time and energy

17
Q

Proof-of-Work is a Consensus Mechanism

A

Consensus Mechanism:
A set of rules that ensures all nodes in a decentralized network agree on the same state of the blockchain.

Why Consensus Matters:
In decentralized systems, there’s no central authority. So we need a way to:

Agree on transaction history.

Prevent fraud like double-spending.

Encourage honesty via economic incentives.

18
Q

What does Bitcoin use?

A

Bitcoin uses Proof-of-Work:

Miners compete to solve cryptographic puzzles.

The first to solve gets to add the next block to the chain.

The more computing power a miner uses, the higher their chances.

19
Q

Proof-of-Stake is a Consensus Mechanism

A

Why PoS?
PoW consumes massive amounts of energy. Ethereum transitioned to PoS to reduce its environmental footprint.

How PoS Works:

Validators stake (lock) some of their cryptocurrency.

The network randomly selects a validator to propose the next block.

More stake = higher chance of being chosen.

Validators check transactions and sign them if valid.

20
Q

PoS Validators

A

To become a validator, you must:

Run a node and

Lock up a minimum amount of ETH (e.g., 32 ETH for Ethereum).

To avoid wealth centralization, randomness is added to the selection.

No nonce or energy-intensive mining is required.

21
Q

Fraud avoidance

A

Bitcoin’s defense mechanism against fraud (especially double-spending) is based on mathematical probability and the fact that honest nodes have more cumulative mining power than attackers.

Bitcoin adds ~6 blocks per hour → 144 per day

Each block contains 2,000 to 4,000 transactions, totaling 300,000+ daily

If an attacker wants to double-spend, they must create a longer chain than the honest one

But the further behind they are, the lower their chance of catching up

From Nakamoto (2008), showing how many block confirmations (z) are required to make the probability of attack success < 0.1% for a given q/p ratio.

22
Q

Bitcoins Mining Block Reward

A

New Bitcoin is issued as a reward to miners for finding a block.

Maximum supply is 21 million BTC.

Initial reward (2009): 50 BTC per block

Reward halves every 210,000 blocks (~every 4 years):

50 → 25 → 12.5 → 6.25 → … until it reaches ~0

Eventually, no new BTC will be issued, and miners will rely only on transaction fees

23
Q

Economic Implications of Bitcoin Reward

A

Economic Implications:
Predictability: Users know the exact issuance schedule in advance

Scarcity: Fixed cap prevents inflation

Monetary Policy Alternative: Bitcoin follows a pre-coded rule, unlike fiat currencies, which can be adjusted at will

24
Q

ETH Staking?

A

More ETH staked = Lower reward rate, assuming constant issuance.

ETH price and staking growth are not always directly correlated.

Reward rates reflect network demand and participation, making PoS adaptive and market-driven.

Rewards Drops as more ETH is staked — reward dilution due to larger pool of validators.

25
BTC Miners Revenue Halfing
1. Before the Halving: BTC price was rising, increasing miners' USD revenue. Despite price volatility, total miner income held steady due to high block rewards. 2. After the Halving (Red Line): Miner revenue dropped sharply—almost halved in USD terms, despite BTC price remaining relatively high. This reflects the direct economic impact of halving the issuance rate: Fewer coins rewarded per block → fewer dollars for miners.
26
Smart Contracts
Bitcoin is „only“ based on a scripting system Ethereum is programmable using languages like: Solidity (primary language) Serpent (outdated), Go, Python, Java, JavaScript, etc. Ethereum's EVM supports Turing-completeness, allowing loops and complex logic. Gas: Every operation in a smart contract consumes gas (a fee to prevent overuse of resources). Gas price = how much you're willing to pay per unit of gas (denominated in Gwei). Gas limit = max gas a user is willing to consume in a transaction. CPU time and memory usage → costs money The more complex your smart contract, the more gas it costs.
27
Ether Block Dissected
Key Block Metadata: Block Number: #20569989 Block Hash: A unique fingerprint of the block’s content Nonce: Not required in PoS (only used in PoW) Parent Hash: Links to the previous block (ensures chain continuity) Size: ~70 KB Transactions: 180 Withdrawals: 16 Gas & Fee Details: Gas Used: ~18.6M (about 62% of the 30M max) Gas Fee: ~0.0000000157 ETH per gas = 109 Gwei Total Burnt Fees: ~0.003 ETH (reflects EIP-1559, which burns a base fee) Base Fee per Gas: Dynamically adjusts based on network usage
28
What is "gas" in Ethereum?
Gas is a fee users pay to execute transactions or run smart contracts. It covers CPU and storage costs and prevents abuse of computational resources.
29
What’s the main difference between Bitcoin and Ethereum regarding programmability?
Bitcoin has limited scripting. Ethereum supports Turing-complete smart contracts, allowing complex applications and decentralized logic.
30
What information does an Ethereum block contain?
Block number, hash, parent hash, gas used, transactions, fees, size, and validator info. In PoS, nonce is unused.
31
Ether Block With Nounce
Block #10,000,000 (PoW Block) From the right-hand side explorer: Date: May 4, 2020 Finalized block Validator: Ethermine (a mining pool) Block reward: 2.07 ETH (2 ETH block reward + fees) Nonce field present: Required to validate PoW This block was mined via the traditional PoW process, using computational effort to find a valid nonce. Once found, the block was added to the chain and confirmed by the network.
32
Ether Block Overview
33
How is GAS measured?
Gas is consumed when: You execute smart contracts. You send tokens or ETH. You store data or perform loops in Solidity. Gas is priced in Gwei, where: 1 Gwei=10 e−9  Ether This makes gas pricing more granular and manageable.
34