02_Mining Flashcards
What do we need mining for?
- solve double spending problem
- not everyone gets information at the same
- ther is no single point of truth -> voting is required
- sybil attacks -> one vote per identiy not possible because on user could make many identities
NP vs P-Problem
NP-hard Problem
Polynomial Time (P-Problem)
- problems can be solved relatively quickly by a computer
Nondeterministic Polynomial Time (NP-Problem)
- problems for which a soluction can be checked quickly
NP-hard Problem
- computing a cryptographic hash that matches specific format is an NP-Hard problem (moderately hard but not intractable)
- checking if the result matches the required fromat is trivial
Hashing Difficulty
- has has to be smaller than 2^224 / difficulty
- the more miners with high has rates the higher the difficulty level will be
Adjustments of difficulty
- to maintain network stability, mining difficulty is periodically adjusted based on total network hash rate
- adjustment ensure that average time between block remains relatively constant
- every block is rewarded with token
- frequency of blocks being generated need to be regulated to control currency supply
- this is done every 2016 block roughly every 2 weeks
New difficulty
= current difficulty / (time taken for last 2016 blocks / 2 weeks)
Inflation
- negligble after the first 20 years or so
Hash Rate
- # of hash calculations per sencond performed by miners
- mining difficulty ensures consistent block production rate
Target difficulty
+
Average Block Time
- 2 weeks for 2016 blocks
- block times are less than 600 seconds on average
Mining Pools
- single miner would find block every 38 years
- miners construct blocks at lower difficulty and submit those as proof of work
- when one miner finds block, hashrate statistics of all miners on the pool are used to calculate fair payout
Pros of Mining Pools
- miners get consistent rewards
- miners don’t need to run a node
Cons of Mining Pools
- pools must be trusted with the fair distribution of coins
- miners can’t choose which transactions they are mining (MARA pool…)
Evolution of Minign hardware in context of difficulty over time
-** shift from CPU to GPU coincides with higher difficulty** and emergence of mining pools
- emergence of FPGA and ASICs revolutionary in 2013 (higher speed with lower energy consumption: 0,01% of CPU and 0,2% of GPU consumption)
Evolution of Mining Farms
- Home Mining
- Garage Mining
- Hangar Farms
- Custom Buildings
- Single-Phase Immersion Cooling
(Mining vs Node distribution)
Mining Equilibrium
= total costs approach total revenue
- will be reached until next halfing in spring 2024
- equilibrium at about 15.2 GW after next halving
Bitcoin Renewables
- mining farms can be build next to green energy projects to generate instant revenue even without grid connection -> big solar projects in texas working togther with miners
- renewables cause large intraday swings in the grid
- miners can turn off in periods of low supply
-> grid operators can sell more power without impacting price for consumers