SlideShare a Scribd company logo
1 of 35
More Mining
David Evans and Samee Zahur
CS4501, Fall 2015
University of Virginia
Selfish mining – back with math!
𝛼 =
our hashing power
total hashing power
3 42
𝛼 𝛼
1 − 𝛼1 − 𝛼
𝛼
1 − 𝛼
𝛼
1 − 𝛼
State diagram
2 31
𝛼 𝛼
1 − 𝛼
1 − 𝛼
𝛼
1 − 𝛼
𝛼
1 − 𝛼
0
1 − 𝛼
[Ittay Eyal and Emin Gün Sirer, 2013]
State diagram
2 31
𝛼 𝛼
1 − 𝛼
1 − 𝛼
𝛼
1 − 𝛼
𝛼
1 − 𝛼
0
1 − 𝛼
Blocks won = number of forward advances
Expected advances
3 42
𝛼 𝛼
1 − 𝛼1 − 𝛼
𝛼
1 − 𝛼
𝛼
1 − 𝛼
Define 𝐸 = Expected number of forward steps
taken, before we exit through (1 − 𝛼) branch
Expected advances
3 42
𝛼 𝛼
1 − 𝛼1 − 𝛼
𝛼
1 − 𝛼
𝛼
1 − 𝛼
𝐸 = 1 − 𝛼 × 0 + …
Expected advances
3 42
𝛼 𝛼
1 − 𝛼1 − 𝛼
𝛼
1 − 𝛼
𝛼
1 − 𝛼
𝐸 = 1 − 𝛼 × 0 + 𝛼 × (1 + ⋯ )
Expected advances
3 42
𝛼 𝛼
1 − 𝛼1 − 𝛼
𝛼
1 − 𝛼
𝛼
1 − 𝛼
𝐸 = 1 − 𝛼 × 0 + 𝛼 × (1 + 𝐸 + 𝐸)
Expected advances
3 42
𝛼 𝛼
1 − 𝛼1 − 𝛼
𝛼
1 − 𝛼
𝛼
1 − 𝛼
𝐸 = 𝛼 × (1 + 2𝐸)
∴ 𝐸 =
𝛼
1 − 2𝛼
, assuming 𝛼 <
1
2
2 31
𝛼 𝛼
1 − 𝛼
1 − 𝛼
𝛼
1 − 𝛼
𝛼
1 − 𝛼
0
1 − 𝛼
Selfish Others
1 − 𝛼 × 1
𝛼 1 − 𝛼 × 1
𝛼2 × 2 + 𝐸
2 31
𝛼 𝛼
1 − 𝛼
1 − 𝛼
𝛼
1 − 𝛼
𝛼
1 − 𝛼
0
1 − 𝛼
Selfish Others
1 − 𝛼 × 1
+ 𝛼 1 − 𝛼 × 1
𝛼2 × 2 +
𝛼
1 − 2𝛼
= 1 − 𝛼2
Selfish Others
𝛼2 × 2 +
𝛼
1 − 2𝛼
1 − 𝛼2
At 𝛼 = 0.40,
Selfish reward = 0.64 blocks/cycle Honest reward = 0.84 blocks/cycle
Selfish
Total
=
0.64
0.84+0.64
≈ 0.432
Mining cooperatively – in pools!
Mining profit
Intel Core i5 2600K
• Quad core
• Speed: total 17.3 M hashes per second
• Power: 75 Watts
At last night’s difficulty, we would need over 374,000 years.
Distributed computing: SETI@home
Engaging small miners … again
GPUs @ 30-100 MH/sec
ASICs @ 11 GH/sec
blockchain.info/pools
Calculate at:
http://www.alcula.com/calculators/finance/bitcoin-mining/
Pool manager
Worker
Worker
Worker
Hey, I found a
block!
Yay!
Yay!
Yay!
Puzzle “shares”
Worker
Pool manager
Lower difficulty:
Hash(B1) = 0x00000002dd43…
Hash(B2) = 0x0000000076a5…
Hash(B3) = 0x0000000f270b…
Hash(B4) = 0x0000000f3f5b…
Purpose of “shares”:
• Proof of work
• Measures hash rate
Proportional rewards
When block is found:
yourShares = shares you submitted since last block
totalShares = shares submitted by the pool since last block
yourReward = 25 BTC * yourShares/totalShares
Reward variation
You get more reward if this block is found is
found early. I.e. early shares are worth more
in expectation. Exploit by:
• Send shares only early in search
• Hop to a different pool if they found a block
recently
Expected share reward
Combating pool hopping
Ineffective methods:
• Detect and punish/ban
• Delaying pool block statistics
De-incentivize by changing scoring system:
• Reward miners who stay longer
• Make rewards independent of “block found” time
Encouraging small miners … again
Can we use “GPU/ASIC resistant” cryptocurrencies?
Password Databases
Username Password
Jack.Clough 12password
Betty.Smith 8c2odkw
Username “Salt” Scrypt(password+salt)
Jack.Clough 150FE5Btiq… PaR6mPwHBj…
Betty.Smith t1Y1B67ulN… QrUaLRqFvc…
Insecure Better
Comparison of cryptocurrencies
Logistics
• No class on Monday, Oct 5th
• Next class on Wednesday, Oct 7th
• Problemset 2 is out: due Oct 9th
• Midterm: Oct 19th

More Related Content

Viewers also liked

Becoming More Paranoid
Becoming More ParanoidBecoming More Paranoid
Becoming More ParanoidDavid Evans
 
Class 1: What is Money?
Class 1: What is Money?Class 1: What is Money?
Class 1: What is Money?David Evans
 
Introduction to Cryptography
Introduction to CryptographyIntroduction to Cryptography
Introduction to CryptographyDavid Evans
 
Hash functions
Hash functionsHash functions
Hash functionssameezahur
 
Hidden Services, Zero Knowledge
Hidden Services, Zero KnowledgeHidden Services, Zero Knowledge
Hidden Services, Zero KnowledgeDavid Evans
 
Scripting Transactions
Scripting TransactionsScripting Transactions
Scripting TransactionsDavid Evans
 
Midterm Confirmations
Midterm ConfirmationsMidterm Confirmations
Midterm ConfirmationsDavid Evans
 
Anonymity in Bitcoin
Anonymity in BitcoinAnonymity in Bitcoin
Anonymity in BitcoinDavid Evans
 
Cryptocurrency Jeopardy!
Cryptocurrency Jeopardy!Cryptocurrency Jeopardy!
Cryptocurrency Jeopardy!David Evans
 

Viewers also liked (13)

Becoming More Paranoid
Becoming More ParanoidBecoming More Paranoid
Becoming More Paranoid
 
Class 1: What is Money?
Class 1: What is Money?Class 1: What is Money?
Class 1: What is Money?
 
Introduction to Cryptography
Introduction to CryptographyIntroduction to Cryptography
Introduction to Cryptography
 
Bitcoin Script
Bitcoin ScriptBitcoin Script
Bitcoin Script
 
Hash functions
Hash functionsHash functions
Hash functions
 
Merkle Trees
Merkle TreesMerkle Trees
Merkle Trees
 
Altcoins
AltcoinsAltcoins
Altcoins
 
Hidden Services, Zero Knowledge
Hidden Services, Zero KnowledgeHidden Services, Zero Knowledge
Hidden Services, Zero Knowledge
 
Scripting Transactions
Scripting TransactionsScripting Transactions
Scripting Transactions
 
Midterm Confirmations
Midterm ConfirmationsMidterm Confirmations
Midterm Confirmations
 
The Blockchain
The BlockchainThe Blockchain
The Blockchain
 
Anonymity in Bitcoin
Anonymity in BitcoinAnonymity in Bitcoin
Anonymity in Bitcoin
 
Cryptocurrency Jeopardy!
Cryptocurrency Jeopardy!Cryptocurrency Jeopardy!
Cryptocurrency Jeopardy!
 

Similar to More mining

Deep learning study 2
Deep learning study 2Deep learning study 2
Deep learning study 2San Kim
 
ANALYSIS OF CONTINUOUS BEAM USING STIFFNESS METHOD
ANALYSIS OF CONTINUOUS BEAM USING STIFFNESS METHODANALYSIS OF CONTINUOUS BEAM USING STIFFNESS METHOD
ANALYSIS OF CONTINUOUS BEAM USING STIFFNESS METHODkasirekha
 
Introduction to Neural Networks and Deep Learning from Scratch
Introduction to Neural Networks and Deep Learning from ScratchIntroduction to Neural Networks and Deep Learning from Scratch
Introduction to Neural Networks and Deep Learning from ScratchAhmed BESBES
 
Paper Study: OptNet: Differentiable Optimization as a Layer in Neural Networks
Paper Study: OptNet: Differentiable Optimization as a Layer in Neural NetworksPaper Study: OptNet: Differentiable Optimization as a Layer in Neural Networks
Paper Study: OptNet: Differentiable Optimization as a Layer in Neural NetworksChenYiHuang5
 
Practical and Worst-Case Efficient Apportionment
Practical and Worst-Case Efficient ApportionmentPractical and Worst-Case Efficient Apportionment
Practical and Worst-Case Efficient ApportionmentRaphael Reitzig
 
Max flows via electrical flows (long talk)
Max flows via electrical flows (long talk)Max flows via electrical flows (long talk)
Max flows via electrical flows (long talk)Thatchaphol Saranurak
 
Activation Functions.pptx
Activation Functions.pptxActivation Functions.pptx
Activation Functions.pptx9905234521
 
Lecture 5 backpropagation
Lecture 5 backpropagationLecture 5 backpropagation
Lecture 5 backpropagationParveenMalik18
 
Umbra Ignite 2015: Rulon Raymond – The State of Skinning – a dive into modern...
Umbra Ignite 2015: Rulon Raymond – The State of Skinning – a dive into modern...Umbra Ignite 2015: Rulon Raymond – The State of Skinning – a dive into modern...
Umbra Ignite 2015: Rulon Raymond – The State of Skinning – a dive into modern...Umbra Software
 
Introduction to Neural Networks and Deep Learning
Introduction to Neural Networks and Deep LearningIntroduction to Neural Networks and Deep Learning
Introduction to Neural Networks and Deep LearningVahid Mirjalili
 
6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem areadicosmo178
 
Computer aided design
Computer aided designComputer aided design
Computer aided designAbhi23396
 
Grade 12 ISC Specimen paper 2024_230716_123422 (2).pdf
Grade 12 ISC Specimen paper 2024_230716_123422 (2).pdfGrade 12 ISC Specimen paper 2024_230716_123422 (2).pdf
Grade 12 ISC Specimen paper 2024_230716_123422 (2).pdfvani311954
 
Insertion sort bubble sort selection sort
Insertion sort bubble sort  selection sortInsertion sort bubble sort  selection sort
Insertion sort bubble sort selection sortUmmar Hayat
 
51545 0131469657 ism-4
51545 0131469657 ism-451545 0131469657 ism-4
51545 0131469657 ism-4Carlos Fuentes
 

Similar to More mining (20)

Deep learning study 2
Deep learning study 2Deep learning study 2
Deep learning study 2
 
ANALYSIS OF CONTINUOUS BEAM USING STIFFNESS METHOD
ANALYSIS OF CONTINUOUS BEAM USING STIFFNESS METHODANALYSIS OF CONTINUOUS BEAM USING STIFFNESS METHOD
ANALYSIS OF CONTINUOUS BEAM USING STIFFNESS METHOD
 
Introduction to Neural Networks and Deep Learning from Scratch
Introduction to Neural Networks and Deep Learning from ScratchIntroduction to Neural Networks and Deep Learning from Scratch
Introduction to Neural Networks and Deep Learning from Scratch
 
Paper Study: OptNet: Differentiable Optimization as a Layer in Neural Networks
Paper Study: OptNet: Differentiable Optimization as a Layer in Neural NetworksPaper Study: OptNet: Differentiable Optimization as a Layer in Neural Networks
Paper Study: OptNet: Differentiable Optimization as a Layer in Neural Networks
 
Practical and Worst-Case Efficient Apportionment
Practical and Worst-Case Efficient ApportionmentPractical and Worst-Case Efficient Apportionment
Practical and Worst-Case Efficient Apportionment
 
Max flows via electrical flows (long talk)
Max flows via electrical flows (long talk)Max flows via electrical flows (long talk)
Max flows via electrical flows (long talk)
 
Activation Functions.pptx
Activation Functions.pptxActivation Functions.pptx
Activation Functions.pptx
 
Lecture 5 backpropagation
Lecture 5 backpropagationLecture 5 backpropagation
Lecture 5 backpropagation
 
EE658_Lecture_8.pdf
EE658_Lecture_8.pdfEE658_Lecture_8.pdf
EE658_Lecture_8.pdf
 
Unit 3
Unit 3Unit 3
Unit 3
 
Umbra Ignite 2015: Rulon Raymond – The State of Skinning – a dive into modern...
Umbra Ignite 2015: Rulon Raymond – The State of Skinning – a dive into modern...Umbra Ignite 2015: Rulon Raymond – The State of Skinning – a dive into modern...
Umbra Ignite 2015: Rulon Raymond – The State of Skinning – a dive into modern...
 
Introduction to Neural Networks and Deep Learning
Introduction to Neural Networks and Deep LearningIntroduction to Neural Networks and Deep Learning
Introduction to Neural Networks and Deep Learning
 
6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area
 
Computer aided design
Computer aided designComputer aided design
Computer aided design
 
Grade 12 ISC Specimen paper 2024_230716_123422 (2).pdf
Grade 12 ISC Specimen paper 2024_230716_123422 (2).pdfGrade 12 ISC Specimen paper 2024_230716_123422 (2).pdf
Grade 12 ISC Specimen paper 2024_230716_123422 (2).pdf
 
Lec10.pptx
Lec10.pptxLec10.pptx
Lec10.pptx
 
Insertion sort bubble sort selection sort
Insertion sort bubble sort  selection sortInsertion sort bubble sort  selection sort
Insertion sort bubble sort selection sort
 
Capitulo 4 Soluciones Purcell 9na Edicion
Capitulo 4 Soluciones Purcell 9na EdicionCapitulo 4 Soluciones Purcell 9na Edicion
Capitulo 4 Soluciones Purcell 9na Edicion
 
4. la integral definida
4. la integral definida4. la integral definida
4. la integral definida
 
51545 0131469657 ism-4
51545 0131469657 ism-451545 0131469657 ism-4
51545 0131469657 ism-4
 

Recently uploaded

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 

Recently uploaded (20)

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 

More mining