Blockchain

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/41

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

42 Terms

1
New cards

What is blockchain?

A decentralised ledger of transactions, fully replicated over a trustless peer-to-peer network.

• Transactions represent events of interest for the specific application scenario oE.g., Bitcoin transaction

2
New cards

Why is blockchain called BlockChain?

oBlock: transactions are grouped in blocks…

o Chain: …blocks are linked to each other in a chain

3
New cards

What is cryptocurrency?

a digital asset that uses cryptography to secure transactions

4
New cards

What is bitcoin?

A cryptocurrency (i.e., a digital asset that uses cryptography to secure transactions) not requiring any centralised authority (e.g., a bank)

5
New cards

What verifies the validity of transactions in bitcon?

Network nodes

6
New cards

Are transactions public or private?

public

7
New cards

What does txn mean?

transaction

8
New cards

What do bitcoin transactions do?

transfer cryptocurrency from sender to destination. Broadcasting to blockchain nodes nodes that verify them. There must consensus among nodes on what transactions occur and their order.

9
New cards

Alice wants to send 5 Bitcoin to Bob - how would this happen?

o Alice broadcasts the transaction to the network

o All nodes verify the transaction

o Each replica of the ledger is updated consequently

10
New cards

How is ownership of a transaction proved?

Through a digital signature, which is sent with the transaction. Each nodes verifies the “sender” of a txn through its digital signature.

11
New cards

What are destinations of transactions identified by?

Adresses - each user usually has one address for each payment to recieve

12
New cards

What is each address associated to?

A private/public key pair

13
New cards

What do wallets contain?

public/private keys associated to the addresses of a user.

14
New cards

What is a wallet?

The software used to manage these keys.

15
New cards

How do you specify where the bitcoins to transfer come from?

o Each transaction includes a list of inputs and another list of output(s)

o Each input points to an amount of bitcoins received in a previous transaction

Inputs are outputs of previous transactions

o Previous outputs can be spent as inputs if its ownership can be proved (outputs must not be already spent in some other transaction)

16
New cards

UTXO

Unspent Transaction Output

17
New cards

Unspent Transaction Output

copy of every unspent output

18
New cards

How can each verify a transaction based on its input?

whether inputs are UTXOs

19
New cards

Why don’t all transactions to a user go through the same address?

If the same address is used to receive more payments, the history of the transactions linked to this address can be used to identify the user.

20
New cards

Why does using different addresses for each received payment not ensure anonymity?

o When UTXOs from different txns are spent in the same txn, the payer can be profiled

21
New cards

What kind of anonymity does bitcoin provide?

pseudo-anonymity

22
New cards

Why does bitcoin not have any intermediaries?

• Lack of trust

• Risk of censorship

• Single point of failure

23
New cards

How do blocks of transactions work ?

Periodically, a new block is created including of confirmed transactions (that ‘happen at the same time’ so they are submitted in batches to become blocks. Each block has a reference to the previous one in the form of a hash. So thus if you change a block you’d have to update every block cause hashes. Every txn in a prev block happens before any txn in the next block.

24
New cards

Who creates blocks?

Miners (nodes taking part in creating new blocks)

25
New cards

What does a miner do?

Chooses what transactions to include in a block, among those it received but are not confirmed yet

Chooses what the previous block is

Solves a resource-intensive puzzle to compute Proof of Work for the block

Broadcasts the node to the network so each node can add it to its local blockchain replica

26
New cards

Why do miners have to solve a puzzle?

This is done to avoid that any node can propose as many new blocks as it would like, overloading the network to the point it becomes unavailable.

27
New cards

What does a new block include?

o Transactions

o A reference to the previous block

o A random number

28
New cards

What is the mining problem?

find a number such that the hash of the whole block has at least a certain number of zeros as most significant digits. It is hard to compute but simple to verify.

29
New cards

How is the difficulty of the puzzle to compute Proof of Work represented?

The more zeros the harder it is.

30
New cards

How often should a new block be generated and how is this ensured?

Difficulty is periodically tuned to ensure a new block is generated about every 10 minutes

31
New cards

Why do miners mine?

o The miner that generates a new block is rewarded with a certain amount of bitcoins

o Transaction fees

32
New cards

Even though it’s infrequent multiple new blocks can be generated at the same time, what should we do?

Blockchain temporary branching:

• Next blocks are mined over specific branches

• Eventually, one branch becomes the longest

• Miners are expected to mine a new block over the longest branch they have seen so far

33
New cards

What is branch resolution?

mechanism that allows a generated block to be rolled back, cancelling transactions.

34
New cards

What is the risk of branch resolution?

double spending fraud

35
New cards

What is a good rule of thumb for branch resolution?

wait for other six blocks before considering a txn confirmed

36
New cards

What is the probability to generate a new block is proportional to?

the hash power (number of hash computed per second) of the miner.

37
New cards

What would happen if a miner had the majority of the hashpower?

It would allow a miner to generate blocks of its choice over a branch that will eventually become the longest. This would remove decentralization.

38
New cards

How is the immutability of the blockchain derived?

from the practical unfeasibility for a single miner to have the majority of the hashpower

39
New cards

What is the purpose of a mining pool?

To increase the chances of mining a block and getting the reward (splitting it between all the miners)

40
New cards

What does more miners in a mining pool mean?

o Collectively larger hashpower

o Higher probability to mine blocks

41
New cards

Advantages of blockchain?

• A decentralised and public network

o where anyone can join and make transactions

• Trustless network where there is no need to trust any participating node

o as long as the majority of the hashpower is controlled by honest nodes

• Pseudo-anonymity

• Ensure immutability of the transaction history

o which is practically unfeasible to tamper with

• A reliable payment system

o where there is no single point of failure

42
New cards

Disadvantages of blockchain?

• High transaction fees may reduce profits or be less attractive for customers

• Slow transaction confirmation, which you might want to wait for 6 confirmations

• Not yet stabilised currency, less attractive for customers

• Due to lack of regulation, business may not be protected