05 Blockchain 02 Flashcards
Describition of PoW
–>including transaction on the ledger requires computational effort and thus is costly
* Miners solve cryptographic puzzle to maintain the ledger
* These puzzles consists of finding a nounce–>this is a special number that results in a hash of that block with a particular pattern
POW: What is a Nounce
Nounce= a special number that when added to the block results in the hash of that block
POW: NOunce characteristics
- the hash has to start with a certain number of zeros that depends on the difficulty of the network
—>This difficult level is adjusted automaticaöy every 2016 blocks to keep the average time between two blocks at about 10 minutes
–>finding the correct nounce is done by try and error
What is done after finding the Correct Nounce?
PoW
–>The miner broadcasts the solution to the network
* it appends the block of transatiom, including the nounce, to the ledger
* The other miners (nodes) can verify the nounce results in a correct hash is computationally easy
Describe the 51% Attack in context of blockchains bitcoin with PoW
The blocks are all cryptographically linked by including the hash of the previous block in the new block
* to make changes or minor modifications to a previous block would require to re-do all the work starting with that block
–>this can in the long run only happend if the person controls 51% of the computational power of the network
What are the two mining incentives?
-
Block rewards through newly generated coins
* successful miners receives bitcoins these reward halves rougly every four years
* in about 2140 the reward is expected to be zero -
Transaction fees from users
* capacity in each block is limited —>users can optinally pay a fee to minizers to incentivize them to include their transaction in a block
–>During times of blockchain congestion, the fees can reach very high levels
What is included in the Block header? Bitcoin
The Block header contains:
* Bitcoin protocol number
* CUrrent difficult level
* Timestamp
* previous block header hash
* Merkle root hash of hased transactions
* Nounce
What is Unspent Transaction Output
Nodes track unspent transaction output (UTXO)
* the bitcoin transactions list input and output addresses
–>UTXO is the output of a transaction and exists until it is used as input for another transaction
–>How many UTXTO´s reside in a given address is computed by counting all prior UXTOs that list this address as their destination
What is Unspent Transaction Output
UTXO means Unspent Transaction Output and
describes how Bitcoin for example tracks the amount of bitcoins a wallet has, furthermore it is a technology that explains how transactions are made on the blockchain.
UTXO model behaves more like cash instead of a bank account
Explaing the unspent transaction output
Works like a wallet, if one has 50 BTC, 1- 30 BTC and 1-20 BTC and wants to send 35 btc
–>Will use both addresses (30 BTC and 20 BTC) and send that to the other addresses, additionally there will be a new “change address” created where the remaining “Unspent transsaction outpu” go in (30+20 - 35) = 15 BTC
What is a Mempool?
New transactions are broadcasted to the whole network, the ones that are valid wait to be included in a block
–>These waiting transactions (confiremed) are stored in the mempool
What does the Mempool mean for the transaction within?
Everyone can see the transactions in the mempool:
* Trading intentions might be revealed
* Front running poses a serious problem —> insider trading
what does the Hashrate meansure?
The Hashrate measure the computing power within the Bitcoin network
* the total network hashrate has increased tremendously
–>The mining difficulty adjust automatically, but what matters for miners is their relative share of computating power
why were Mining pools created in the first place?
For an individual miner it is extremely unlikely to get the block reward
–>Thus to get a more stable stream of income, miners join in mining pools
–>Each members of a pool contribute computational power
How is reward in mining pools distributed?
- the rewards are typically distributed according to member´s contributed hashrate
- pool operators keeps a small percentage to cover administrative costs
–>relatively few mining pools represent a large part of overall Bitcoin mining, raising concerns about centralization