Bitcoin Mechanics Slides

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 186

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

187 Terms

1

Bitcoin Consensus

A decentralized protocol ensuring all transactions are validated by miners and recorded in an append-only ledger.

New cards
2

Account-Based Ledger

A financial model where balances are stored in accounts and updated when transactions occur

New cards
3

Transaction-Based Ledger

A ledger model used by Bitcoin where transactions reference previous outputs rather than modifying account balances directly.

New cards
4

Validity of Transactions

Transactions must be traced back to their origin to ensure the sender has sufficient funds

New cards
5

Bitcoin’s Use of Hash Pointers

Transactions reference previous transactions through cryptographic hash pointers

New cards
6

Unspent Transaction Output (UTXO)

The remaining portion of a Bitcoin transaction output that has not been spent

New cards
7

Merging Value in Bitcoin

Multiple transaction inputs can be combined into a single output

New cards
8

Joint Payments

Bitcoin allows multiple signers to authorize transactions

New cards
9

Bitcoin Scripts

A stack-based scripting language used to define spending conditions for Bitcoin transactions.

New cards
10

Common Bitcoin Script Instructions

Includes OP_DUP (duplicate top stack item)

New cards
11

Pay-to-Script-Hash (P2SH)

A transaction type allowing users to pay to a script hash rather than a public key

New cards
12

Proof-of-Burn

A mechanism where coins are permanently destroyed by sending them to an unspendable address

New cards
13

Escrow Transactions

A Bitcoin use case where funds are locked in a multi-signature contract requiring multiple approvals for release.

New cards
14

Green Addresses

A technique where a trusted intermediary signs transactions

New cards
15

Efficient Micro-Payments

Incremental payments using pre-signed transactions

New cards
16

Locktime in Bitcoin

A transaction parameter that prevents spending until a specified block height or timestamp is reached.

New cards
17

Bitcoin Blocks

Bundles of transactions linked cryptographically

New cards
18

Merkle Trees in Bitcoin

A data structure that efficiently organizes and verifies transactions within a block

New cards
19

Coinbase Transaction

The first transaction in a Bitcoin block

New cards
20

Bitcoin P2P Network

A decentralized network of nodes that propagates transactions and blocks without a central authority.

New cards
21

Transaction Flooding

A broadcast mechanism where nodes relay transactions to their peers to ensure network-wide propagation.

New cards
22

Race Conditions in Bitcoin

Situations where conflicting transactions or blocks compete for inclusion

New cards
23

Hard Fork

A blockchain protocol upgrade that is not backward-compatible

New cards
24

Soft Fork

A backward-compatible blockchain upgrade that tightens validation rules while allowing older nodes to remain functional.

New cards
25

Bitcoin’s Throughput Limits

Bitcoin can handle approximately 7 transactions per second due to its 1MB block size and 10-minute block interval.

New cards
26

Cryptographic Limitations in Bitcoin

Bitcoin relies on specific cryptographic primitives (e.g.

New cards
27

Bitcoin’s Storage Growth

The blockchain size increases over time

New cards
28

Simplified Payment Verification (SPV)

A method allowing lightweight clients to verify transactions without storing the full blockchain.

New cards
29

Software Diversity in Bitcoin

While Bitcoin Core is the dominant implementation

New cards
30

Bitcoin’s Economic Balance

The system is designed with fixed supply and reward halving to control inflation and miner incentives.

New cards
31

Bitcoin’s Role as Digital Gold

Bitcoin’s scarcity and security make it a store of value akin to gold

New cards
32

What is an account-based ledger?

A financial ledger where balances are stored in accounts and updated with each transaction

New cards
33

How does an account-based ledger differ from a transaction-based ledger?

In an account-based ledger

New cards
34

What is the primary advantage of an account-based ledger?

It simplifies transaction verification by maintaining account balances rather than tracking individual unspent transaction outputs (UTXOs).

New cards
35

What is a potential security risk in an account-based ledger?

Double-spending attacks may be easier since balances are updated directly

New cards
36

How are transactions verified in an account-based ledger?

The ledger checks the sender’s balance before approving a transaction

New cards
37

How does an account-based ledger prevent double spending?

It uses a central authority or distributed consensus to verify transactions and update balances in real-time.

New cards
38

What kind of systems commonly use account-based ledgers?

Traditional banking systems

New cards
39

What role do digital signatures play in an account-based ledger?

Digital signatures authenticate transactions

New cards
40

How does an account-based ledger handle user identity?

Users are typically identified by account addresses or public keys

New cards
41

What is a nonce in an account-based ledger?

A unique transaction identifier that prevents replay attacks by ensuring each transaction is used only once.

New cards
42

How does Ethereum implement an account-based ledger?

Ethereum maintains account balances and smart contract states in its ledger rather than tracking UTXOs.

New cards
43

What are the two types of accounts in Ethereum's account-based ledger?

Externally Owned Accounts (EOAs) controlled by private keys and Contract Accounts controlled by smart contracts.

New cards
44

How do smart contracts interact with an account-based ledger?

They execute code and modify account balances based on predefined conditions.

New cards
45

Why is gas required in Ethereum’s account-based ledger?

Gas fees prevent spam and allocate computational resources fairly by charging for execution costs.

New cards
46

How does state management differ between an account-based and a transaction-based ledger?

Account-based ledgers update account states

New cards
47

New cards
48

Alice wants to send 17 coins to Bob using a transaction-based ledger. How should she structure the transaction?

Alice must use her entire UTXO of 25 coins as input and create two outputs: 17 coins to Bob and 8 coins back to herself as change.

New cards
49

What happens to the input UTXO once Alice spends it in a transaction?

The original UTXO is considered spent and removed from the UTXO set

New cards
50

No

Bob receives 17 coins from Alice. Can he now spend exactly 5 coins from this transaction?

New cards
51

Alice initially has a UTXO of 25 coins. She sends 10 coins to Bob. How many UTXOs does she have afterward?

Alice has one new UTXO worth 15 coins if she included a change output.

New cards
52

What happens if Alice does not include a change output in her transaction?

Any remaining value from the input UTXO is considered a transaction fee and given to the miner.

New cards
53

If Alice has two UTXOs (one worth 5 coins and another worth 10 coins)

how can she send 12 coins to Bob?

New cards
54

What does 'merging value' mean in a transaction-based ledger?

It refers to combining multiple UTXOs as inputs in a transaction to send a larger amount.

New cards
55

Alice and Bob want to send a joint payment of 30 coins to Charlie. Alice has a UTXO worth 20 coins

and Bob has a UTXO worth 15 coins. How should they structure the transaction?

New cards
56

How are joint payments structured in Bitcoin's transaction-based ledger?

Multiple parties sign a transaction where their UTXOs are included as inputs

New cards
57

Alice receives a 50-coin UTXO. She then makes a transaction sending 30 coins to Bob and 10 coins to Carol. What are the outputs?

One output of 30 coins to Bob

New cards
58

If Alice tries to spend only a portion of her UTXO without creating a change output

what happens?

New cards
59

Why does Bitcoin require entire UTXOs to be used in a transaction?

Since UTXOs are immutable

New cards
60

How does the transaction-based ledger model differ from an account-based ledger in handling balances?

Instead of modifying a balance

New cards
61

What is a Bitcoin transaction hash?

A unique identifier for a transaction

New cards
62

What is the purpose of the 'version' field in a Bitcoin transaction?

It specifies the transaction format and helps with protocol upgrades.

New cards
63

What does 'vin_sz' indicate in a Bitcoin transaction?

It represents the number of inputs included in the transaction.

New cards
64

What does 'vout_sz' indicate in a Bitcoin transaction?

It represents the number of outputs generated by the transaction.

New cards
65

What is 'lock_time' in a Bitcoin transaction?

It defines the earliest time or block height at which the transaction can be included in a block.

New cards
66

How is the size of a Bitcoin transaction measured?

It is measured in bytes or virtual bytes (vBytes) if SegWit is used.

New cards
67

What is included in a Bitcoin transaction input?

It contains references to previous transaction outputs (UTXOs) being spent and an unlocking script (scriptSig or witness data).

New cards
68

What is the purpose of the scriptSig in a Bitcoin transaction input?

It provides the cryptographic signature needed to unlock and spend a referenced UTXO.

New cards
69

What does a Bitcoin transaction output contain?

It includes the output value (amount in BTC) and a locking script (scriptPubKey) defining spending conditions.

New cards
70

How is a Bitcoin transaction fee determined?

It is the difference between the sum of input values and the sum of output values

New cards
71

What happens if the sum of all transaction inputs is greater than the sum of all outputs?

The difference is considered a transaction fee and is collected by the miner who confirms the transaction.

New cards
72

What is OP_DUP in a Bitcoin script?

An operation that duplicates the top stack element

New cards
73

What is OP_HASH160 in a Bitcoin script?

It applies a hash function (RIPEMD-160 after SHA-256) to the top stack element

New cards
74

What is OP_EQUALVERIFY in a Bitcoin script?

It compares two stack elements and fails the script if they are not equal

New cards
75

What is OP_CHECKSIG in a Bitcoin script?

It verifies that a provided signature matches the expected public key for spending a UTXO.

New cards
76

What is a Pay-to-Public-Key-Hash (P2PKH) transaction?

A standard Bitcoin transaction type where funds are locked to a hashed public key and can only be spent with a valid signature.

New cards
77

What is a Pay-to-Script-Hash (P2SH) transaction?

A transaction where the recipient provides a script hash

New cards
78

What is the role of 'scriptPubKey' in a Bitcoin transaction?

It defines the conditions under which the output can be spent

New cards
79

How do Bitcoin nodes verify a transaction?

They check that all inputs are valid

New cards
80

What is the difference between the 'transaction being redeemed' and the 'redeeming transaction'?

The transaction being redeemed provides inputs for the new transaction (redeeming transaction) that spends its outputs.

New cards
81

What is Bitcoin Script?

A stack-based scripting language used to define conditions for spending Bitcoin outputs.

New cards
82

Why is Bitcoin Script not Turing complete?

It lacks loops and recursion to prevent infinite execution

New cards
83

What are the key design goals of Bitcoin Script?

Simplicity

New cards
84

How many instructions does Bitcoin Script have?

256 instructions

New cards
85

What are the possible outcomes of a Bitcoin script execution?

Either successful execution (valid transaction) or an error (invalid transaction).

New cards
86

What does OP_DUP do in Bitcoin Script?

Duplicates the top item on the stack

New cards
87

What is the purpose of OP_HASH160 in Bitcoin Script?

It applies SHA-256 followed by RIPEMD-160

New cards
88

How does OP_EQUALVERIFY work in Bitcoin Script?

It compares the top two stack elements and marks the transaction invalid if they do not match.

New cards
89

What does OP_CHECKSIG do in Bitcoin Script?

Verifies a digital signature using a public key to confirm transaction authenticity.

New cards
90

What is OP_CHECKMULTISIG used for?

It verifies multiple signatures from a set of public keys

New cards
91

How does Bitcoin Script handle joint payments?

It allows multiple parties to co-sign transactions using OP_CHECKMULTISIG.

New cards
92

What is the typical execution flow of a Bitcoin script in a P2PKH transaction?

The stack processes ` OP_DUP OP_HASH160
New cards
93

What happens when OP_DUP is executed?

The public key is duplicated on the stack for later verification.

New cards
94

Why does Bitcoin Script use OP_HASH160?

It produces a short

New cards
95

What does OP_EQUALVERIFY do in a standard P2PKH script execution?

It ensures the provided public key hash matches the expected recipient's hash.

New cards
96

What does OP_CHECKSIG verify at the end of script execution?

It checks if the signature provided corresponds to the correct public key.

New cards
97

What happens if a Bitcoin script execution encounters an error?

The transaction is invalid and rejected by the network.

New cards
98

How does Bitcoin ensure script execution is deterministic?

By using a stack-based system with no looping or conditional branching beyond basic logic.

New cards
99

Why is script execution linear in Bitcoin?

It avoids complex computation

New cards
100

What does it mean when a script execution returns 'true'?

It means the transaction is valid and meets the spending conditions.

New cards
robot