SlideShare ist ein Scribd-Unternehmen logo
Mining demystified
Heavy tools
gigahash
terahash
petahash
1
PH
=
b50f642411733cd63264d3bedc046a5364ff3c77d2b37ca298ad8f1b5a9f05ba
x
1 000 000 000 000 000
(1 quadrillion)
~
58 000
TB
each second
!
1
PH
=
b50f642411733cd63264d3bedc046a5364ff3c77d2b37ca298ad8f1b5a9f05ba
x
1 000 000 000 000 000
(1 quadrillion)
~
58 000
TB
each second
!
Current Bitcoin network hash rate: ~50 PH/s
Y U NEED SO MANY HASHES?
Mining:
creation of new bitcoins and
distributing transactions
Idea: Make it really hard to mine
hard mine
mine hard
mine hard
Get it? :)
Hard to do, easy to verify
Proof of work
A new block roughly every 10 minutes
New block references previous block
Forming a ...?
Forming a block chain
“Side effect”: adding new bitcoins
25 bitcoins reward per block
~7700 EUR every 10 minutes
~400m EUR per year
Reward halves every
210,000 blocks = 4 years
Next halving:
~ 21 August 2016
How mining works
Cryptographic function called
“double SHA-256”
Secure Hash Algorithm
Invented by NSA
OMG!
Nothing to fear,
all math, all open source
256 bits “digest size”
(length of resulting hash)
“hello”
first round of SHA-256:
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
second round of SHA-256:
9595c9df90075148eb06860365df33584b75bff782a510c6cd4883a419833d50
Hash length of 64 characters:
32 hex octets with 8 bits each = 256 bits
Sort of a checksum
Virtually impossible to reverse
First step to mine a new block:
Collecting new transactions
Second step:
Hashing of block header
If hash starts with enough zeros,
you found a block
000000000000000024aed4ca327f8957bb5f112787ff5350971a3fe38c144f14
Bingo!
If not, increment “nonce” or other values in
block header and try again
A quadrillion times!
Enough zeros?
Currently 17:
00000000000000000
Determined by “difficulty”,
adjusted ~ every 2 weeks
Pooled mining
Share work with other miners
Pool participants send partial work
to earn shares
For example all hashes
with 12 leading zeros
Compensation according to share
If a block was found,
new work is being sent out
Pool communication protocols:
Stratum, Getwork, Getblocktemplate
Stratum used by most pools
Stratum uses JSON-RPC
JavaScript Object Notation
Remote Procedure Call
Human-readable (sort of):
{"id": 1, "method": "mining.subscribe", "params": []}
To be continued...
Thanks for listening!
@meinharrd
meinhard@benn.org
benn.org
Presentation held at
Bitcoin Startups Meet-up Berlin
6 May 2014
CC-BY-NC 2014 Meinhard Benn

Weitere ähnliche Inhalte

Mehr von meinhard

Scalable Blockchain Payments
Scalable Blockchain PaymentsScalable Blockchain Payments
Scalable Blockchain Payments
meinhard
 
Bitcoin micropayment channels
Bitcoin micropayment channelsBitcoin micropayment channels
Bitcoin micropayment channels
meinhard
 
Bitcoin Nanopayments by SatoshiPay
Bitcoin Nanopayments by SatoshiPayBitcoin Nanopayments by SatoshiPay
Bitcoin Nanopayments by SatoshiPay
meinhard
 
Machine to machine payments
Machine to machine paymentsMachine to machine payments
Machine to machine payments
meinhard
 
Micropayments at the Tipping Point?
Micropayments at the Tipping Point?Micropayments at the Tipping Point?
Micropayments at the Tipping Point?
meinhard
 
Pocket Bitcoin ATM, presented at Mobile POS Hackathon Berlin February 2014
Pocket Bitcoin ATM, presented at Mobile POS Hackathon Berlin February 2014Pocket Bitcoin ATM, presented at Mobile POS Hackathon Berlin February 2014
Pocket Bitcoin ATM, presented at Mobile POS Hackathon Berlin February 2014
meinhard
 

Mehr von meinhard (6)

Scalable Blockchain Payments
Scalable Blockchain PaymentsScalable Blockchain Payments
Scalable Blockchain Payments
 
Bitcoin micropayment channels
Bitcoin micropayment channelsBitcoin micropayment channels
Bitcoin micropayment channels
 
Bitcoin Nanopayments by SatoshiPay
Bitcoin Nanopayments by SatoshiPayBitcoin Nanopayments by SatoshiPay
Bitcoin Nanopayments by SatoshiPay
 
Machine to machine payments
Machine to machine paymentsMachine to machine payments
Machine to machine payments
 
Micropayments at the Tipping Point?
Micropayments at the Tipping Point?Micropayments at the Tipping Point?
Micropayments at the Tipping Point?
 
Pocket Bitcoin ATM, presented at Mobile POS Hackathon Berlin February 2014
Pocket Bitcoin ATM, presented at Mobile POS Hackathon Berlin February 2014Pocket Bitcoin ATM, presented at Mobile POS Hackathon Berlin February 2014
Pocket Bitcoin ATM, presented at Mobile POS Hackathon Berlin February 2014
 

Kürzlich hochgeladen

University of North Carolina at Charlotte degree offer diploma Transcript
University of North Carolina at Charlotte degree offer diploma TranscriptUniversity of North Carolina at Charlotte degree offer diploma Transcript
University of North Carolina at Charlotte degree offer diploma Transcript
tscdzuip
 
Tdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFi
Tdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFiTdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFi
Tdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFi
nimaruinazawa258
 
New Visa Rules for Tourists and Students in Thailand | Amit Kakkar Easy Visa
New Visa Rules for Tourists and Students in Thailand | Amit Kakkar Easy VisaNew Visa Rules for Tourists and Students in Thailand | Amit Kakkar Easy Visa
New Visa Rules for Tourists and Students in Thailand | Amit Kakkar Easy Visa
Amit Kakkar
 
Money20/20 and EU Networking Event of 20/24!
Money20/20 and EU Networking Event of 20/24!Money20/20 and EU Networking Event of 20/24!
Money20/20 and EU Networking Event of 20/24!
FinTech Belgium
 
Seeman_Fiintouch_LLP_Newsletter_Jun_2024.pdf
Seeman_Fiintouch_LLP_Newsletter_Jun_2024.pdfSeeman_Fiintouch_LLP_Newsletter_Jun_2024.pdf
Seeman_Fiintouch_LLP_Newsletter_Jun_2024.pdf
Ashis Kumar Dey
 
Fabular Frames and the Four Ratio Problem
Fabular Frames and the Four Ratio ProblemFabular Frames and the Four Ratio Problem
Fabular Frames and the Four Ratio Problem
Majid Iqbal
 
1.2 Business Ideas Business Ideas Busine
1.2 Business Ideas Business Ideas Busine1.2 Business Ideas Business Ideas Busine
1.2 Business Ideas Business Ideas Busine
Lawrence101
 
South Dakota State University degree offer diploma Transcript
South Dakota State University degree offer diploma TranscriptSouth Dakota State University degree offer diploma Transcript
South Dakota State University degree offer diploma Transcript
ynfqplhm
 
falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...
falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...
falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...
Falcon Invoice Discounting
 
在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样
在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样
在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样
5spllj1l
 
Unlock Your Potential with NCVT MIS.pptx
Unlock Your Potential with NCVT MIS.pptxUnlock Your Potential with NCVT MIS.pptx
Unlock Your Potential with NCVT MIS.pptx
cosmo-soil
 
Ending stagnation: How to boost prosperity across Scotland
Ending stagnation: How to boost prosperity across ScotlandEnding stagnation: How to boost prosperity across Scotland
Ending stagnation: How to boost prosperity across Scotland
ResolutionFoundation
 
Economic Risk Factor Update: June 2024 [SlideShare]
Economic Risk Factor Update: June 2024 [SlideShare]Economic Risk Factor Update: June 2024 [SlideShare]
Economic Risk Factor Update: June 2024 [SlideShare]
Commonwealth
 
Detailed power point presentation on compound interest and how it is calculated
Detailed power point presentation on compound interest  and how it is calculatedDetailed power point presentation on compound interest  and how it is calculated
Detailed power point presentation on compound interest and how it is calculated
KishanChaudhary23
 
How Non-Banking Financial Companies Empower Startups With Venture Debt Financing
How Non-Banking Financial Companies Empower Startups With Venture Debt FinancingHow Non-Banking Financial Companies Empower Startups With Venture Debt Financing
How Non-Banking Financial Companies Empower Startups With Venture Debt Financing
Vighnesh Shashtri
 
1:1制作加拿大麦吉尔大学毕业证硕士学历证书原版一模一样
1:1制作加拿大麦吉尔大学毕业证硕士学历证书原版一模一样1:1制作加拿大麦吉尔大学毕业证硕士学历证书原版一模一样
1:1制作加拿大麦吉尔大学毕业证硕士学历证书原版一模一样
qntjwn68
 
Unlock-the-Power-of-UAN-Your-Key-to-Secure-Retirement.pptx
Unlock-the-Power-of-UAN-Your-Key-to-Secure-Retirement.pptxUnlock-the-Power-of-UAN-Your-Key-to-Secure-Retirement.pptx
Unlock-the-Power-of-UAN-Your-Key-to-Secure-Retirement.pptx
cosmo-soil
 
^%$Zone1:+971)581248768’][* Legit & Safe #Abortion #Pills #For #Sale In #Duba...
^%$Zone1:+971)581248768’][* Legit & Safe #Abortion #Pills #For #Sale In #Duba...^%$Zone1:+971)581248768’][* Legit & Safe #Abortion #Pills #For #Sale In #Duba...
^%$Zone1:+971)581248768’][* Legit & Safe #Abortion #Pills #For #Sale In #Duba...
mayaclinic18
 
Who Is Abhay Bhutada, MD of Poonawalla Fincorp
Who Is Abhay Bhutada, MD of Poonawalla FincorpWho Is Abhay Bhutada, MD of Poonawalla Fincorp
Who Is Abhay Bhutada, MD of Poonawalla Fincorp
beulahfernandes8
 
Governor Olli Rehn: Inflation down and recovery supported by interest rate cu...
Governor Olli Rehn: Inflation down and recovery supported by interest rate cu...Governor Olli Rehn: Inflation down and recovery supported by interest rate cu...
Governor Olli Rehn: Inflation down and recovery supported by interest rate cu...
Suomen Pankki
 

Kürzlich hochgeladen (20)

University of North Carolina at Charlotte degree offer diploma Transcript
University of North Carolina at Charlotte degree offer diploma TranscriptUniversity of North Carolina at Charlotte degree offer diploma Transcript
University of North Carolina at Charlotte degree offer diploma Transcript
 
Tdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFi
Tdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFiTdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFi
Tdasx: Unveiling the Trillion-Dollar Potential of Bitcoin DeFi
 
New Visa Rules for Tourists and Students in Thailand | Amit Kakkar Easy Visa
New Visa Rules for Tourists and Students in Thailand | Amit Kakkar Easy VisaNew Visa Rules for Tourists and Students in Thailand | Amit Kakkar Easy Visa
New Visa Rules for Tourists and Students in Thailand | Amit Kakkar Easy Visa
 
Money20/20 and EU Networking Event of 20/24!
Money20/20 and EU Networking Event of 20/24!Money20/20 and EU Networking Event of 20/24!
Money20/20 and EU Networking Event of 20/24!
 
Seeman_Fiintouch_LLP_Newsletter_Jun_2024.pdf
Seeman_Fiintouch_LLP_Newsletter_Jun_2024.pdfSeeman_Fiintouch_LLP_Newsletter_Jun_2024.pdf
Seeman_Fiintouch_LLP_Newsletter_Jun_2024.pdf
 
Fabular Frames and the Four Ratio Problem
Fabular Frames and the Four Ratio ProblemFabular Frames and the Four Ratio Problem
Fabular Frames and the Four Ratio Problem
 
1.2 Business Ideas Business Ideas Busine
1.2 Business Ideas Business Ideas Busine1.2 Business Ideas Business Ideas Busine
1.2 Business Ideas Business Ideas Busine
 
South Dakota State University degree offer diploma Transcript
South Dakota State University degree offer diploma TranscriptSouth Dakota State University degree offer diploma Transcript
South Dakota State University degree offer diploma Transcript
 
falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...
falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...
falcon-invoice-discounting-a-premier-investment-platform-for-superior-returns...
 
在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样
在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样
在线办理(GU毕业证书)美国贡萨加大学毕业证学历证书一模一样
 
Unlock Your Potential with NCVT MIS.pptx
Unlock Your Potential with NCVT MIS.pptxUnlock Your Potential with NCVT MIS.pptx
Unlock Your Potential with NCVT MIS.pptx
 
Ending stagnation: How to boost prosperity across Scotland
Ending stagnation: How to boost prosperity across ScotlandEnding stagnation: How to boost prosperity across Scotland
Ending stagnation: How to boost prosperity across Scotland
 
Economic Risk Factor Update: June 2024 [SlideShare]
Economic Risk Factor Update: June 2024 [SlideShare]Economic Risk Factor Update: June 2024 [SlideShare]
Economic Risk Factor Update: June 2024 [SlideShare]
 
Detailed power point presentation on compound interest and how it is calculated
Detailed power point presentation on compound interest  and how it is calculatedDetailed power point presentation on compound interest  and how it is calculated
Detailed power point presentation on compound interest and how it is calculated
 
How Non-Banking Financial Companies Empower Startups With Venture Debt Financing
How Non-Banking Financial Companies Empower Startups With Venture Debt FinancingHow Non-Banking Financial Companies Empower Startups With Venture Debt Financing
How Non-Banking Financial Companies Empower Startups With Venture Debt Financing
 
1:1制作加拿大麦吉尔大学毕业证硕士学历证书原版一模一样
1:1制作加拿大麦吉尔大学毕业证硕士学历证书原版一模一样1:1制作加拿大麦吉尔大学毕业证硕士学历证书原版一模一样
1:1制作加拿大麦吉尔大学毕业证硕士学历证书原版一模一样
 
Unlock-the-Power-of-UAN-Your-Key-to-Secure-Retirement.pptx
Unlock-the-Power-of-UAN-Your-Key-to-Secure-Retirement.pptxUnlock-the-Power-of-UAN-Your-Key-to-Secure-Retirement.pptx
Unlock-the-Power-of-UAN-Your-Key-to-Secure-Retirement.pptx
 
^%$Zone1:+971)581248768’][* Legit & Safe #Abortion #Pills #For #Sale In #Duba...
^%$Zone1:+971)581248768’][* Legit & Safe #Abortion #Pills #For #Sale In #Duba...^%$Zone1:+971)581248768’][* Legit & Safe #Abortion #Pills #For #Sale In #Duba...
^%$Zone1:+971)581248768’][* Legit & Safe #Abortion #Pills #For #Sale In #Duba...
 
Who Is Abhay Bhutada, MD of Poonawalla Fincorp
Who Is Abhay Bhutada, MD of Poonawalla FincorpWho Is Abhay Bhutada, MD of Poonawalla Fincorp
Who Is Abhay Bhutada, MD of Poonawalla Fincorp
 
Governor Olli Rehn: Inflation down and recovery supported by interest rate cu...
Governor Olli Rehn: Inflation down and recovery supported by interest rate cu...Governor Olli Rehn: Inflation down and recovery supported by interest rate cu...
Governor Olli Rehn: Inflation down and recovery supported by interest rate cu...
 

Bitcoin Mining Demystified