SlideShare a Scribd company logo
Cryptocurrency Café
UVa cs4501 Spring 2015
David Evans
Class 11:
Mining Pools
and Attacks
Plan for Today
PointCoin Update
Mining Pools
Attacks and Vulnerabilities
1
Snow Day!
2
3
4
Is this gambling or a “good/bad” investment?
5
Expected Revenues (?)
6
Model
Cost: US$ 479
1.7 TH/s
BTC: US$ 240
Difficulty: (today)
>>> expected_hashes # at current difficulty
1.9093455768686638e+20
>>> expected_hashes / (1.7 * 10**12)
112314445.6981567 # expected seconds to find block
>>> _ / (60 * 60 * 24)
1299.935714099036 # days to find block
>>> block_value = 240 * 25
>>> earnings_per_year = block_value * (365.25 / 1300)
>>> earnings_per_year
1685.769230769231
Operating Cost
7
Operating Profit
8
>>> kWh = 0.07
>>> hours_per_year = 24 * 365.25
>>> electricity_cost = (1.2 * kWh) * hours_per_year
>>> electricity_cost
736.344 # US $ per year
>>> profit_per_year = earnings_per_year - electricity_cost
949.4252307692309
Easy Money?
9
10
March 2014
11
12
# this is a very low assumption - over past year, average rate was 0.35
rate_of_difficulty = 0.05
def guess_difficulty(month):
return difficulty * ((1 + rate_of_difficulty) ** month)
def expected_revenue(month):
success_probability = find_target(guess_difficulty(month)) / 2**256
return block_value * hashes_in_month * success_probability
def cumulative_income(months):
income = 0.0
month = 0
while month < months:
income += expected_income(month)
month += 1
return income
13
>> cumulative_income(1)
79.12571644571238
>>> cumulative_income(12)
571.0928818228372
>>> cumulative_income(24)
562.7786595271843
>>> cumulative_income(17)
619.9072133191279
Block Value
14
15
What happened around block 210000?
16
https://blockchain.info/block/00000000000000f3819164645360294b5dee7f2e
846001ac9f41a70b7a9a3de1
17
Date Difficulty Block # Days (delta)
Increase %
Per Difficulty
Adj
Daily
increase %
Tl. Network
Strength
(Mhash/s)
Difficulty
Increase
2012-11-12 3,368,767 207648 13.74 1.95% 0.14% 24,114,574 64,411
2012-11-26 3,438,909 209664 13.72 2.08% 0.15% 24,616,669 70,142
2012-12-10 3,370,182 211680 14.29 -2.00% -0.14% 24,124,701 -68,727
2012-12-26 2,979,637 213696 15.83 -11.59% -0.77% 21,329,070 -390,545
2013-01-08 3,249,550 215712 12.86 9.06% 0.68% 23,261,182 269,913
2013-01-23 2,968,775 217728 15.33 -8.64% -0.59% 21,251,322 -280,774
2013-02-05 3,275,465 219744 12.69 10.33% 0.78% 23,446,689 306,689
Expected Outcome
18
Given the expected useful lifetime of 17 months for this miner,
what is the most likely result?
Expected Outcome
19
Given the expected useful
lifetime of 17 months for
this miner, what is the most
likely result?
def expected_blocks(month):
success_probability =
find_target(guess_difficulty(month)) / 2**256
return hashes_in_month *
success_probability
def cumulative_expected_blocks(months):
blocks = 0
for month in range(months):
blocks += expected_blocks(month)
return blocks
cumulative_expected_blocks(17)
0.27717686888652143
Probability Refresher
20
What is the probability that tossing a fair coin k times produces 0 tails?
Probability of Finding No Blocks
21
With target T, what is the probability no block is found with K hashes?
22
Mining Pools
23
Mining Power
24
https://blockchain.info/pools?timespan=24hrs
Last 4 Days Last 24 Hours
25Last 24 hours
Mining Pools
26
Charge
Don’t attack PointCoin yet!
Project 2 Part 1: Due Sunday
Quiz next Wednesday
27
If you don’t yet understand fundamentally how bitcoin
works, definitely come to my office hours before then
(Thursday 4-5pm, Monday 3:15-5pm)
“GHash.IO does not have
any intentions to execute a
51% attack… it could risk
our investments in physical
hardware and we see no
benefit from having 51%
stake in mining.”

More Related Content

DOCX
Balance sheet nalco1
DOCX
18 oct12 การจัดทำแผนเอดส์56เขต
PPT
Cashflow
PDF
Energy rate structures i concepts and unit pricing skarat1993
PPTX
More Mining
PDF
11.3 credit default swaps
PDF
第7回 大規模データを用いたデータフレーム操作実習(1)
PDF
SCCL PERFORMANCE REPORT JAN 20255555.PDF
Balance sheet nalco1
18 oct12 การจัดทำแผนเอดส์56เขต
Cashflow
Energy rate structures i concepts and unit pricing skarat1993
More Mining
11.3 credit default swaps
第7回 大規模データを用いたデータフレーム操作実習(1)
SCCL PERFORMANCE REPORT JAN 20255555.PDF

Similar to Mining Pools and Profits (20)

PDF
Equity Research Report 26 March 2018 Ways2Capital
XLS
Hul balance sheet
PPT
Analisa Financial PT Pelindo III
PPTX
Corporate Governance and Firm performance In nepal
PDF
Assignment - Financial Appraisal
PPT
Marketing plan
PPT
Marketing
PPTX
Reliance Industries ltd. data & analysis
PDF
Chapter 02 us - final solutions
PPTX
Wipro prediction of development and bankruptcy
PDF
Reporting and Forecasting: Using Advanced MS Excel Tools and VBA Coding to Ma...
PDF
Configuration Optimization Tool
PDF
JTP - EV Presentation
DOCX
Quantitative Analysis of Retail Sector Companies
PPTX
Weekly marketing update sample
PDF
J J FOAM MODERANISATION
PPT
Financial Data Mining Talk
PDF
96128834 business-statistics-series-3-2010-code3009
PPT
D10 bb 6
PDF
Development of a Reinforcement Learning-Based Optimization Model for Customer...
Equity Research Report 26 March 2018 Ways2Capital
Hul balance sheet
Analisa Financial PT Pelindo III
Corporate Governance and Firm performance In nepal
Assignment - Financial Appraisal
Marketing plan
Marketing
Reliance Industries ltd. data & analysis
Chapter 02 us - final solutions
Wipro prediction of development and bankruptcy
Reporting and Forecasting: Using Advanced MS Excel Tools and VBA Coding to Ma...
Configuration Optimization Tool
JTP - EV Presentation
Quantitative Analysis of Retail Sector Companies
Weekly marketing update sample
J J FOAM MODERANISATION
Financial Data Mining Talk
96128834 business-statistics-series-3-2010-code3009
D10 bb 6
Development of a Reinforcement Learning-Based Optimization Model for Customer...
Ad

More from David Evans (20)

PPTX
Cryptocurrency Jeopardy!
PPTX
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
PPTX
Hidden Services, Zero Knowledge
PPTX
Anonymity in Bitcoin
PPTX
Midterm Confirmations
PPTX
Scripting Transactions
PPTX
How to Live in Paradise
PPTX
Bitcoin Script
PPTX
Mining Economics
PPTX
Mining
PPTX
The Blockchain
PPTX
Becoming More Paranoid
PPTX
Asymmetric Key Signatures
PPTX
Introduction to Cryptography
PPTX
Class 1: What is Money?
PPTX
Multi-Party Computation for the Masses
PPTX
Proof of Reserve
PPTX
Silk Road
PPTX
Blooming Sidechains!
PPTX
Useful Proofs of Work, Permacoin
Cryptocurrency Jeopardy!
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
Hidden Services, Zero Knowledge
Anonymity in Bitcoin
Midterm Confirmations
Scripting Transactions
How to Live in Paradise
Bitcoin Script
Mining Economics
Mining
The Blockchain
Becoming More Paranoid
Asymmetric Key Signatures
Introduction to Cryptography
Class 1: What is Money?
Multi-Party Computation for the Masses
Proof of Reserve
Silk Road
Blooming Sidechains!
Useful Proofs of Work, Permacoin
Ad

Recently uploaded (20)

PDF
2012_The dark side of valuation a jedi guide to valuing difficult to value co...
PDF
THE EFFECT OF FOREIGN AID ON ECONOMIC GROWTH IN ETHIOPIA
PDF
HCWM AND HAI FOR BHCM STUDENTS(1).Pdf and ptts
PPTX
Q1 PE AND HEALTH 5 WEEK 5 DAY 1 powerpoint template
PPTX
Role and functions of International monetary fund.pptx
PDF
How to join illuminati agent in Uganda Kampala call 0782561496/0756664682
PDF
1a In Search of the Numbers ssrn 1488130 Oct 2009.pdf
PDF
The Right Social Media Strategy Can Transform Your Business
PDF
7a Lifetime Expected Income Breakeven Comparison between SPIAs and Managed Po...
PPTX
28 - relative valuation lecture economicsnotes
PDF
GVCParticipation_Automation_Climate_India
PDF
The Role of Islamic Faith, Ethics, Culture, and values in promoting fairness ...
PPTX
OAT_ORI_Fed Independence_August 2025.pptx
PPTX
Very useful ppt for your banking assignments Banking.pptx
PDF
USS pension Report and Accounts 2025.pdf
DOCX
BUSINESS PERFORMANCE SITUATION AND PERFORMANCE EVALUATION OF FELIX HOTEL IN H...
PDF
3CMT J.AFABLE Flexible-Learning ENTREPRENEURIAL MANAGEMENT.pdf
PPTX
General-Characteristics-of-Microorganisms.pptx
DOCX
Final. 150 minutes exercise agrumentative Essay
PPTX
Lesson Environment and Economic Growth.pptx
2012_The dark side of valuation a jedi guide to valuing difficult to value co...
THE EFFECT OF FOREIGN AID ON ECONOMIC GROWTH IN ETHIOPIA
HCWM AND HAI FOR BHCM STUDENTS(1).Pdf and ptts
Q1 PE AND HEALTH 5 WEEK 5 DAY 1 powerpoint template
Role and functions of International monetary fund.pptx
How to join illuminati agent in Uganda Kampala call 0782561496/0756664682
1a In Search of the Numbers ssrn 1488130 Oct 2009.pdf
The Right Social Media Strategy Can Transform Your Business
7a Lifetime Expected Income Breakeven Comparison between SPIAs and Managed Po...
28 - relative valuation lecture economicsnotes
GVCParticipation_Automation_Climate_India
The Role of Islamic Faith, Ethics, Culture, and values in promoting fairness ...
OAT_ORI_Fed Independence_August 2025.pptx
Very useful ppt for your banking assignments Banking.pptx
USS pension Report and Accounts 2025.pdf
BUSINESS PERFORMANCE SITUATION AND PERFORMANCE EVALUATION OF FELIX HOTEL IN H...
3CMT J.AFABLE Flexible-Learning ENTREPRENEURIAL MANAGEMENT.pdf
General-Characteristics-of-Microorganisms.pptx
Final. 150 minutes exercise agrumentative Essay
Lesson Environment and Economic Growth.pptx

Mining Pools and Profits

  • 1. Cryptocurrency Café UVa cs4501 Spring 2015 David Evans Class 11: Mining Pools and Attacks
  • 2. Plan for Today PointCoin Update Mining Pools Attacks and Vulnerabilities 1
  • 4. 3
  • 5. 4 Is this gambling or a “good/bad” investment?
  • 6. 5
  • 7. Expected Revenues (?) 6 Model Cost: US$ 479 1.7 TH/s BTC: US$ 240 Difficulty: (today) >>> expected_hashes # at current difficulty 1.9093455768686638e+20 >>> expected_hashes / (1.7 * 10**12) 112314445.6981567 # expected seconds to find block >>> _ / (60 * 60 * 24) 1299.935714099036 # days to find block >>> block_value = 240 * 25 >>> earnings_per_year = block_value * (365.25 / 1300) >>> earnings_per_year 1685.769230769231
  • 9. Operating Profit 8 >>> kWh = 0.07 >>> hours_per_year = 24 * 365.25 >>> electricity_cost = (1.2 * kWh) * hours_per_year >>> electricity_cost 736.344 # US $ per year >>> profit_per_year = earnings_per_year - electricity_cost 949.4252307692309
  • 12. 11
  • 13. 12 # this is a very low assumption - over past year, average rate was 0.35 rate_of_difficulty = 0.05 def guess_difficulty(month): return difficulty * ((1 + rate_of_difficulty) ** month) def expected_revenue(month): success_probability = find_target(guess_difficulty(month)) / 2**256 return block_value * hashes_in_month * success_probability def cumulative_income(months): income = 0.0 month = 0 while month < months: income += expected_income(month) month += 1 return income
  • 14. 13 >> cumulative_income(1) 79.12571644571238 >>> cumulative_income(12) 571.0928818228372 >>> cumulative_income(24) 562.7786595271843 >>> cumulative_income(17) 619.9072133191279
  • 16. 15
  • 17. What happened around block 210000? 16 https://blockchain.info/block/00000000000000f3819164645360294b5dee7f2e 846001ac9f41a70b7a9a3de1
  • 18. 17 Date Difficulty Block # Days (delta) Increase % Per Difficulty Adj Daily increase % Tl. Network Strength (Mhash/s) Difficulty Increase 2012-11-12 3,368,767 207648 13.74 1.95% 0.14% 24,114,574 64,411 2012-11-26 3,438,909 209664 13.72 2.08% 0.15% 24,616,669 70,142 2012-12-10 3,370,182 211680 14.29 -2.00% -0.14% 24,124,701 -68,727 2012-12-26 2,979,637 213696 15.83 -11.59% -0.77% 21,329,070 -390,545 2013-01-08 3,249,550 215712 12.86 9.06% 0.68% 23,261,182 269,913 2013-01-23 2,968,775 217728 15.33 -8.64% -0.59% 21,251,322 -280,774 2013-02-05 3,275,465 219744 12.69 10.33% 0.78% 23,446,689 306,689
  • 19. Expected Outcome 18 Given the expected useful lifetime of 17 months for this miner, what is the most likely result?
  • 20. Expected Outcome 19 Given the expected useful lifetime of 17 months for this miner, what is the most likely result? def expected_blocks(month): success_probability = find_target(guess_difficulty(month)) / 2**256 return hashes_in_month * success_probability def cumulative_expected_blocks(months): blocks = 0 for month in range(months): blocks += expected_blocks(month) return blocks cumulative_expected_blocks(17) 0.27717686888652143
  • 21. Probability Refresher 20 What is the probability that tossing a fair coin k times produces 0 tails?
  • 22. Probability of Finding No Blocks 21 With target T, what is the probability no block is found with K hashes?
  • 23. 22
  • 28. Charge Don’t attack PointCoin yet! Project 2 Part 1: Due Sunday Quiz next Wednesday 27 If you don’t yet understand fundamentally how bitcoin works, definitely come to my office hours before then (Thursday 4-5pm, Monday 3:15-5pm) “GHash.IO does not have any intentions to execute a 51% attack… it could risk our investments in physical hardware and we see no benefit from having 51% stake in mining.”