mining economics
TRANSCRIPT
![Page 1: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/1.jpg)
Cryptocurrency Cabalcs4501 Fall 2015
David Evans and Samee ZahurUniversity of Virginia
Class 9:Mining
Economics
![Page 2: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/2.jpg)
2
How Paranoid Should We Be?
![Page 3: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/3.jpg)
3
Ken Thompson(born 1943)
Dennis Ritchie
1983
![Page 4: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/4.jpg)
4
![Page 5: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/5.jpg)
Malicious Xcode Compiler
Benign Developer
(Infected) App
Thousands of infected apps in App Store
![Page 6: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/6.jpg)
6
Plan for Today• Costs and benefits of mining• Checkup 2
Stop to Start
Checkup by 2:40
![Page 7: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/7.jpg)
7
Mining and Mining
How much coal is mined to mine a bitcoin?
![Page 8: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/8.jpg)
8
Bitcoin Mining
http://www.thecoinsman.com/2014/08/bitcoin/inside-chinese-bitcoin-mine/
The first thing you notice as you approach the warehouse is the noise. It begins as soon as you step out of the car, at which point it sounds like massive swarm of angry bees droning away somewhere off in the distance. It becomes louder and louder the closer you get to the building, and as you step through the doors it becomes a deafening and steady roar…
![Page 9: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/9.jpg)
9
Fire at mining facility in Thailand, 14 Oct 2014Photo credit: www.thairath.co.th
![Page 10: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/10.jpg)
10
![Page 11: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/11.jpg)
11
Cost of electricity: ¥400,000 ($60,000 US)/month
http://www.thecoinsman.com/2014/08/bitcoin/inside-chinese-bitcoin-mine/
![Page 12: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/12.jpg)
12http://shrinkthatfootprint.com/average-electricity-prices-kwh
![Page 13: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/13.jpg)
13http://shrinkthatfootprint.com/average-electricity-prices-kwh
$60,000/month × 0.08/kWh = 750,000 kWh
![Page 14: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/14.jpg)
14
![Page 15: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/15.jpg)
15
Total Network Hashing Power
Difficulty is adjusted to mine one block every 10 minutes.
Target = Tmax / DifficultyExpected hashes = 2255 / TargetNetwork hashes per second ~ Expected hashes / 600s
![Page 16: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/16.jpg)
16
>>> difficulty = 59335351234 >>> target = 2 ** 224 / difficulty>>> success_probability = target / 2**256>>> expected_hashes = 1 / success_probability>>> expected_hashes2.5484339304670328e+20>>> hashes_per_second = expected_hashes / 6004.247389884111721e+17
![Page 17: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/17.jpg)
17
>>> difficulty = 59335351234 >>> target = 2 ** 224 / difficulty>>> success_probability = target / 2**256>>> expected_hashes = 1 / success_probability>>> expected_hashes2.5484339304670328e+20>>> hashes_per_second = expected_hashes / 6004.247389884111721e+17
![Page 18: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/18.jpg)
18
Estimating Energy
Use
![Page 19: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/19.jpg)
19
Estimating Energy
Use
![Page 20: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/20.jpg)
20
>>> gh_per_second = hashes_per_second / 10**9>>> gh_per_second424738988.4111721>>> j_per_gh = 0.5>>> j_per_s = j_per_gh * gh_per_second212369494.20558605
212 MJ/secondCompare: Princeton book’s estimate is 117MW (mostly because they use 3 GH/J
![Page 21: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/21.jpg)
21
Dominion PowerLake Anna Power Station1892 MW (450,000 homes)~9x entire bitcoin mining power (with efficient ASICs)
![Page 22: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/22.jpg)
22
Is Mining Profitable?Joules per block = 212 MJ * 600s = 127 421 MJKWh = 127 421 MJ/(60*60*1000) = 35395 KWh to find block
![Page 23: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/23.jpg)
23
Is Mining Profitable?Joules per block = 212 MJ * 600s = 127 421 MJ
KWh = 127 421 MJ/(60*60*1000) = 35395 KWh to find block
![Page 24: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/24.jpg)
24
Is Mining Profitable?Joules per block = 212 MJ * 600s = 127 421 MJKWh = 127 421 MJ/(60*60*1000) = 35395 KWh to find blockDollars of electricity per block = KWh * 0.08 = $2831
1 BTC = $234.54 (9/23 1:15pm)Mining reward = 25 BTC + fees = $5863.5
![Page 25: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/25.jpg)
25
![Page 26: Mining Economics](https://reader035.vdocuments.us/reader035/viewer/2022062822/587d52771a28abee158b4e49/html5/thumbnails/26.jpg)
26
Checkup 2