SlideShare a Scribd company logo
Introduction to
Cryptographic Currencies
Claudio Orlandi
cs.au.dk/~orlandi
Thanks to: Jon K. Sørensen and Peter S. Nordholt
Leave while you can!
• I will NOT talk about:
– Politics
– Economics
– …
• Coming up next:
– Algorithms
– Cryptography
– …
Outline
• Part 0: a little history
• Part 1: TheoryCoin
– How to create coins
– How to transfer coins
– How to store coins
• Part 2: diff( , )
• Part 3: Problems and issues
crypto currency
The 1990s
David Chaum and anonymous ecash
“The difference between
a bad electronic cash system
and well-developed digital cash
will determine whether
we will have a dictatorship
or a real democracy”
(attributed to Chaum)
Anonymous payments
”withdraw”
”withdraw”
M or L?
Chaum’s anonymous e-cash
anonymous
secure (no double-spending)
only transfer (no creation/storage)
…and bankrupted in 1999
The advent of Bitcoin
• 2009: Bitcoin announced by Satoshi Nakamoto
– Pseudonym for person or group of person
• 2009-2011: slow start…
• 2011-2013: Silk Road and Dread Pirate Roberts
• End 2013: Bitcoin price skyrockets
– and the world notices!
Outline
• Part 0: a little history
• Part 1: TheoryCoin
– How to create coins
– How to transfer coins
– How to store coins
• Part 2: diff( , )
• Part 3: Problems and issues
TheoryCoin:
How to create money
1. Everyone
tries to solve a puzzle
2. The first one to solve
the puzzle gets 1 TC
3. The solution of puzzle i
defines puzzle i+1
TheoryCoin:
How to create money
H
L ∈ {0,1}* R ∈ {0,1}*
T ∈ {0,1}d
SolvePuzzle(L){
repeat{
R = my_name || i++
T = H(L,R)
}while(T ≠ 0d)
return R
}
The puzzle:
given L, find R
such that T=0d
(a random function)
* aka Proof-of-Work
TheoryCoin: (coins to ppl)
How to create money
H
x0 = Start! x1 =(P1, i1)
000…000
x2=(P2, i1)
H
000…000
x3=(P3, i3)
H
000…000
P3
P1
P2
x1
x1
x2 x2
x3
x3
* aka the blockchain
x7=(P3, i7)
x6=(P3, i6)
x5=(P5, i5)
x0=Start! x1=(P1, i1) x2=(P2, i2)
x3=(P3, i3)
x4=(P4, i4)
TheoryCoin:
How to create money
* aka the 51% attack
TheoryCoin:
How to create money
Recap:
Solve the next puzzle  get a coin
– To “solve” puzzle i find xi s.t H(xi-1,xi)=0d
– The longest chain defines “next puzzle”
– The name in block xi “gets” coin i.
Outline
• Part 0: a little history
• Part 1: TheoryCoin
– How to create coins
– How to transfer coins
– How to store coins
• Part 2: diff( , )
• Part 3: Problems and issues
TheoryCoin:
How to transfer money
(Digital) Signatures
– Only you can sign
– Everyone can verify
– You cannot deny
Give coin 3 to Jesper
Claudio
TheoryCoin:
How to transfer money
Gen
Sign Verify
message message, signature accept/reject
secret key public key
“Your username”
“Your pin code”
P3 P1
m=“P3 gives coin 3 to P1”
s=Sig(sk3,m)
If
Ver(pk3,m,s) = accept
and
P3 owns coin 3
then
return accept
TheoryCoin:
How to transfer money
P3
P1
P2
accept
accept
TheoryCoin:
How to transfer money
m1=“P3 gives coin 3 to P1”
s1=Sig(sk3,m1)
m2=“P3 gives coin 3 to P2”
s2=Sig(sk3,m2)
* aka double spending
P3
P1
TheoryCoin:
How to transfer money
...
(m1,s1)
...
(m2,s2)
...
(m4,s4)
m1 = “P3 gives coin 3 to P1”
s1 = Sig(sk3,m1)
m2 = “P3 gives coin 3 to P2”
s2 = Sig(sk3,m2)
write
(m1,s1)
write
(m2,s2)
read
(m1,s1)
P2
read
(m2,s2)
accept
reject
P4
m4 = “P1 gives coin 3 to P4”
s4 = Sig(sk1,m4)
write
(m4,s4)
read
(m4,s4)
Outline
• Part 0: a little history
• Part 1: TheoryCoin
– How to create coins
– How to transfer coins
– How to store coins
• Part 2: diff( , )
• Part 3: Problems and issues
TheoryCoin:
How to store money
Main Idea:
Record transfers in the blockchain
x4=(P4, (m,s), i4)
P1
TheoryCoin:
How to store money
P3
P2 P4
(m,s)
(m,s)
(m,s)
SolvePuzzle(L,...){
repeat{
R = my_name||(m,s)|| i++
T = H(L,R)
}while(T ≠ 0d)
return R
}
Outline
• Part 0: a little history
• Part 1: TheoryCoin
– How to create coins
– How to transfer coins
– How to store coins
• Part 2: diff( , )
• Part 3: Problems and issues
diff( , )
How is money created in Bitcoin?
• New block every ~10 mins
– d adjusted every ~2000 blocks
• H = 2-SHA2
• Initial reward: 50 BTC
– Halved every ~4 years (now 25 BTC)
diff( , )
How is money transferred in Bitcoin?
P1 gives 14 to P1
Transaction fee 1
Example: P1 wants to give 60 to P2
... gives 50 to P1
… gives 25 to P1
P1 gives 60 to P2
diff( , )
How is money stored in Bitcoin?
• Transaction in orphaned blocks are invalid
– Wait 6 blocks (~1 hour) before accepting transaction.
– Checkpoints to prevent complete history rollback.
• All transaction are stored in the blockchain
– (Currently ~14 GB)
Outline
• Part 0: a little history
• Part 1: TheoryCoin
– How to create coins
– How to transfer coins
– How to store coins
• Part 2: diff( , )
• Part 3: Problems and issues
Anonymity?
• Problem:
– Every transaction ever made is recorded forever
• Solution?
– Use new identity for each transaction
• But:
– Heuristics allow to cluster identities
• Anonymous alternatives:
– Zerocoin, Zerocash…
Users?
(and their devices)
• Unfortunate property of DSA
• This address
1HKywxiL4JziqXrzLKhmB6a74ma6kxbSDj
probably stole ~250000kr this way
(due to bug in Android Java based random generator)
Extractor
Sig(sk,m1,r)
Sig(sk,m2,r)
sk
Programmable money?
“Bitcoin uses a scripting system for transactions. Forth-like,
Script is simple, stack-based, and processed from left to right. It
is purposefully not Turing-complete, with no loops.”
E.g., “P1 gives 1 BTC to P2 if at least
2 out of (P1,P2,P3) sign this transaction”
Functionality: more than money?
Security: malware payments?
Mining pools
• Solving puzzles (mining) is hard!
– Miners join pools and share work/reward
• How to optimally split work?
• Mechanism design?
– rational miner?
– how to allocate reward?
A final word…
Distributed currencies:
for the good guys or the bad guys?
– Crime is bad! Tax evasion is bad!
– But sometimes governments are bad too!
Thanks! Questions?
Sources:
Learn about signatures/ecash/cryptography at csaudk
https://services.brics.dk/java/courseadmin/crypto/
https://services.brics.dk/java/courseadmin/cpt
https://services.brics.dk/java/courseadmin/CryCom
Story of Chaum and DigiCash (to be taken with a grain of salt)
http://cryptome.org/jya/digicrash.htm
Bitcoin paper and announcement
http://article.gmane.org/gmane.comp.encryption.general/12588/
http://www.mail-archive.com/cryptography@metzdowd.com/msg10142.html
This pizza cost 750,000 usd
http://motherboard.vice.com/blog/this-pizza-is-worth-750000
Lily Allen turns down btcs
https://twitter.com/lilyallen/statuses/419942070770741249
Signature attack
http://eprint.iacr.org/2013/734
Deanonymizing
http://cseweb.ucsd.edu/~smeiklejohn/files/imc13.pdf
http://eprint.iacr.org/2012/584
Zerocoin/Zerocash
http://zerocoin.org/
Graphs, stats etc
www.blockchain.info
Comparison with Altcoins
http://www.coinwarz.com/cryptocurrency
Bitcoin stolen from TV
http://nymag.com/daily/intelligencer/2013/12/bloomberg-anchors-christmas-bitcoin-gets-stolen.html
Visa/Mastercard vs Wikileaks
http://www.forbes.com/sites/andygreenberg/2010/12/07/visa-mastercard-move-to-choke-wikileaks/
Not in the talk, but very interesting:
Silkroad essentials
http://exitevent.com/privacy-tor-btc-and-what-the-silk-road-crackdown-means-to-you-131112.asp http://arstechnica.com/tech-policy/2013/10/how-the-feds-took-down-the-dread-
pirate-roberts/ http://pando.com/2014/01/02/with-130m-of-bitcoin-wealth-and-plans-to-sell-the-fbi-could-rattle-the-virtual-currency-cage
The value overflow bug
https://en.bitcoin.it/wiki/Common_Vulnerabilities_and_Exposures#CVE-2010-5139
The March 2013 chain fork
https://bitcoin.org/en/alert/2013-03-11-chain-fork
Buggy transaction, mistery miner
https://blockchain.info/tx-index/3618498/4005d6bea3a93fb72f006d23e2685b85069d270cb57d15f0c057ef2d5e3f78
https://bitcointalk.org/index.php?topic=67634.0
The problem with “checkpointed” bitcoin
http://www.links.org/files/decentralised-currencies.pdf
This presentation contains copyrighted images the use of which has not always been specifically authorized by the copyright owner. I am making the material available for
educational purposes only and I believe this constitutes a 'fair use'.

More Related Content

Similar to theorycoin.pptx

SMART Seminar Series: "Blockchain and its Applications". Presented by Prof Wi...
SMART Seminar Series: "Blockchain and its Applications". Presented by Prof Wi...SMART Seminar Series: "Blockchain and its Applications". Presented by Prof Wi...
SMART Seminar Series: "Blockchain and its Applications". Presented by Prof Wi...
SMART Infrastructure Facility
 
Become a cryptonomad
Become a cryptonomadBecome a cryptonomad
Become a cryptonomad
Nicolas Wagner
 
A research-oriented introduction to the cryptographic currencies (starting wi...
A research-oriented introduction to the cryptographic currencies (starting wi...A research-oriented introduction to the cryptographic currencies (starting wi...
A research-oriented introduction to the cryptographic currencies (starting wi...
vpnmentor
 
Bitcoin & Blockchain Instroduction
Bitcoin & Blockchain InstroductionBitcoin & Blockchain Instroduction
Bitcoin & Blockchain Instroduction
LeViet33
 
Introduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrenciesIntroduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrencies
Sergey Ivliev
 
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for CypherpunksTrick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
David Evans
 
The Bitcoin blockchain (en)
The Bitcoin blockchain (en)The Bitcoin blockchain (en)
The Bitcoin blockchain (en)
Davide Carboni
 
Introducing blockchain
Introducing blockchainIntroducing blockchain
Introducing blockchain
Lon Barfield
 
Computing on Encrypted Data
Computing on Encrypted DataComputing on Encrypted Data
Computing on Encrypted Data
New York Technology Council
 
Introduction to SMPC
Introduction to SMPCIntroduction to SMPC
Introduction to SMPC
securityxploded
 
Introduction to smpc
Introduction to smpc Introduction to smpc
Introduction to smpc
Cysinfo Cyber Security Community
 
Bitcoin - Understanding and Assessing potential Opportunities
Bitcoin - Understanding and Assessing potential OpportunitiesBitcoin - Understanding and Assessing potential Opportunities
Bitcoin - Understanding and Assessing potential Opportunities
QuasarVentures
 
Crypto & Crpyocurrencies Intro
Crypto & Crpyocurrencies IntroCrypto & Crpyocurrencies Intro
Crypto & Crpyocurrencies Intro
Tal Shmueli
 
Blockchain Technology - Week 6 - Role of Cryptography in Blockchain
Blockchain Technology - Week 6 - Role of Cryptography in BlockchainBlockchain Technology - Week 6 - Role of Cryptography in Blockchain
Blockchain Technology - Week 6 - Role of Cryptography in Blockchain
Ferdin Joe John Joseph PhD
 
IEEE ICDM 2018 Tutorial on Blockchain Data Analytics
IEEE ICDM 2018 Tutorial on Blockchain Data AnalyticsIEEE ICDM 2018 Tutorial on Blockchain Data Analytics
IEEE ICDM 2018 Tutorial on Blockchain Data Analytics
Cuneyt Gurcan Akcora
 
On Mining Bitcoins - Fundamentals & Outlooks
On Mining Bitcoins - Fundamentals & OutlooksOn Mining Bitcoins - Fundamentals & Outlooks
On Mining Bitcoins - Fundamentals & Outlooks
Filip Maertens
 
Bitcoins, blockchains and beyond
Bitcoins, blockchains and beyondBitcoins, blockchains and beyond
Bitcoins, blockchains and beyond
jhaand
 
PRESENTATION.pptx
PRESENTATION.pptxPRESENTATION.pptx
PRESENTATION.pptx
FaiZiTricks
 
The Mathematics Behind Bitcoin
The Mathematics Behind BitcoinThe Mathematics Behind Bitcoin
The Mathematics Behind Bitcoin
Cyril Grunspan
 
Ethereum: From there to here, and ownards yonder
Ethereum: From there to here, and ownards yonderEthereum: From there to here, and ownards yonder
Ethereum: From there to here, and ownards yonder
gavofyork
 

Similar to theorycoin.pptx (20)

SMART Seminar Series: "Blockchain and its Applications". Presented by Prof Wi...
SMART Seminar Series: "Blockchain and its Applications". Presented by Prof Wi...SMART Seminar Series: "Blockchain and its Applications". Presented by Prof Wi...
SMART Seminar Series: "Blockchain and its Applications". Presented by Prof Wi...
 
Become a cryptonomad
Become a cryptonomadBecome a cryptonomad
Become a cryptonomad
 
A research-oriented introduction to the cryptographic currencies (starting wi...
A research-oriented introduction to the cryptographic currencies (starting wi...A research-oriented introduction to the cryptographic currencies (starting wi...
A research-oriented introduction to the cryptographic currencies (starting wi...
 
Bitcoin & Blockchain Instroduction
Bitcoin & Blockchain InstroductionBitcoin & Blockchain Instroduction
Bitcoin & Blockchain Instroduction
 
Introduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrenciesIntroduction into blockchains and cryptocurrencies
Introduction into blockchains and cryptocurrencies
 
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for CypherpunksTrick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
 
The Bitcoin blockchain (en)
The Bitcoin blockchain (en)The Bitcoin blockchain (en)
The Bitcoin blockchain (en)
 
Introducing blockchain
Introducing blockchainIntroducing blockchain
Introducing blockchain
 
Computing on Encrypted Data
Computing on Encrypted DataComputing on Encrypted Data
Computing on Encrypted Data
 
Introduction to SMPC
Introduction to SMPCIntroduction to SMPC
Introduction to SMPC
 
Introduction to smpc
Introduction to smpc Introduction to smpc
Introduction to smpc
 
Bitcoin - Understanding and Assessing potential Opportunities
Bitcoin - Understanding and Assessing potential OpportunitiesBitcoin - Understanding and Assessing potential Opportunities
Bitcoin - Understanding and Assessing potential Opportunities
 
Crypto & Crpyocurrencies Intro
Crypto & Crpyocurrencies IntroCrypto & Crpyocurrencies Intro
Crypto & Crpyocurrencies Intro
 
Blockchain Technology - Week 6 - Role of Cryptography in Blockchain
Blockchain Technology - Week 6 - Role of Cryptography in BlockchainBlockchain Technology - Week 6 - Role of Cryptography in Blockchain
Blockchain Technology - Week 6 - Role of Cryptography in Blockchain
 
IEEE ICDM 2018 Tutorial on Blockchain Data Analytics
IEEE ICDM 2018 Tutorial on Blockchain Data AnalyticsIEEE ICDM 2018 Tutorial on Blockchain Data Analytics
IEEE ICDM 2018 Tutorial on Blockchain Data Analytics
 
On Mining Bitcoins - Fundamentals & Outlooks
On Mining Bitcoins - Fundamentals & OutlooksOn Mining Bitcoins - Fundamentals & Outlooks
On Mining Bitcoins - Fundamentals & Outlooks
 
Bitcoins, blockchains and beyond
Bitcoins, blockchains and beyondBitcoins, blockchains and beyond
Bitcoins, blockchains and beyond
 
PRESENTATION.pptx
PRESENTATION.pptxPRESENTATION.pptx
PRESENTATION.pptx
 
The Mathematics Behind Bitcoin
The Mathematics Behind BitcoinThe Mathematics Behind Bitcoin
The Mathematics Behind Bitcoin
 
Ethereum: From there to here, and ownards yonder
Ethereum: From there to here, and ownards yonderEthereum: From there to here, and ownards yonder
Ethereum: From there to here, and ownards yonder
 

Recently uploaded

Role of Information Technology in Revenue - Prof Oyedokun.pptx
Role of Information Technology in Revenue  - Prof Oyedokun.pptxRole of Information Technology in Revenue  - Prof Oyedokun.pptx
Role of Information Technology in Revenue - Prof Oyedokun.pptx
Godwin Emmanuel Oyedokun MBA MSc PhD FCA FCTI FCNA CFE FFAR
 
Independent Study - College of Wooster Research (2023-2024) FDI, Culture, Glo...
Independent Study - College of Wooster Research (2023-2024) FDI, Culture, Glo...Independent Study - College of Wooster Research (2023-2024) FDI, Culture, Glo...
Independent Study - College of Wooster Research (2023-2024) FDI, Culture, Glo...
AntoniaOwensDetwiler
 
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
Godwin Emmanuel Oyedokun MBA MSc PhD FCA FCTI FCNA CFE FFAR
 
Sources of Revenue for State Government - Prof Oyedokun.pptx
Sources of Revenue for State Government - Prof Oyedokun.pptxSources of Revenue for State Government - Prof Oyedokun.pptx
Sources of Revenue for State Government - Prof Oyedokun.pptx
Godwin Emmanuel Oyedokun MBA MSc PhD FCA FCTI FCNA CFE FFAR
 
Does teamwork really matter? Looking beyond the job posting to understand lab...
Does teamwork really matter? Looking beyond the job posting to understand lab...Does teamwork really matter? Looking beyond the job posting to understand lab...
Does teamwork really matter? Looking beyond the job posting to understand lab...
Labour Market Information Council | Conseil de l’information sur le marché du travail
 
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
 
快速制作美国迈阿密大学牛津分校毕业证文凭证书英文原版一模一样
快速制作美国迈阿密大学牛津分校毕业证文凭证书英文原版一模一样快速制作美国迈阿密大学牛津分校毕业证文凭证书英文原版一模一样
快速制作美国迈阿密大学牛津分校毕业证文凭证书英文原版一模一样
rlo9fxi
 
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.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
 
OAT_RI_Ep20 WeighingTheRisks_May24_Trade Wars.pptx
OAT_RI_Ep20 WeighingTheRisks_May24_Trade Wars.pptxOAT_RI_Ep20 WeighingTheRisks_May24_Trade Wars.pptx
OAT_RI_Ep20 WeighingTheRisks_May24_Trade Wars.pptx
hiddenlevers
 
Abhay Bhutada Leads Poonawalla Fincorp To Record Low NPA And Unprecedented Gr...
Abhay Bhutada Leads Poonawalla Fincorp To Record Low NPA And Unprecedented Gr...Abhay Bhutada Leads Poonawalla Fincorp To Record Low NPA And Unprecedented Gr...
Abhay Bhutada Leads Poonawalla Fincorp To Record Low NPA And Unprecedented Gr...
Vighnesh Shashtri
 
SWAIAP Fraud Risk Mitigation Prof Oyedokun.pptx
SWAIAP Fraud Risk Mitigation   Prof Oyedokun.pptxSWAIAP Fraud Risk Mitigation   Prof Oyedokun.pptx
SWAIAP Fraud Risk Mitigation Prof Oyedokun.pptx
Godwin Emmanuel Oyedokun MBA MSc PhD FCA FCTI FCNA CFE FFAR
 
Pensions and housing - Pensions PlayPen - 4 June 2024 v3 (1).pdf
Pensions and housing - Pensions PlayPen - 4 June 2024 v3 (1).pdfPensions and housing - Pensions PlayPen - 4 June 2024 v3 (1).pdf
Pensions and housing - Pensions PlayPen - 4 June 2024 v3 (1).pdf
Henry Tapper
 
FCCS Basic Accounts Outline and Hierarchy.pptx
FCCS Basic Accounts Outline and Hierarchy.pptxFCCS Basic Accounts Outline and Hierarchy.pptx
FCCS Basic Accounts Outline and Hierarchy.pptx
nalamynandan
 
WhatsPump Thriving in the Whirlwind of Biden’s Crypto Roller Coaster
WhatsPump Thriving in the Whirlwind of Biden’s Crypto Roller CoasterWhatsPump Thriving in the Whirlwind of Biden’s Crypto Roller Coaster
WhatsPump Thriving in the Whirlwind of Biden’s Crypto Roller Coaster
muslimdavidovich670
 
Solution Manual For Financial Accounting, 8th Canadian Edition 2024, by Libby...
Solution Manual For Financial Accounting, 8th Canadian Edition 2024, by Libby...Solution Manual For Financial Accounting, 8th Canadian Edition 2024, by Libby...
Solution Manual For Financial Accounting, 8th Canadian Edition 2024, by Libby...
Donc Test
 
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
 
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
nexop1
 
Financial Assets: Debit vs Equity Securities.pptx
Financial Assets: Debit vs Equity Securities.pptxFinancial Assets: Debit vs Equity Securities.pptx
Financial Assets: Debit vs Equity Securities.pptx
Writo-Finance
 
Earn a passive income with prosocial investing
Earn a passive income with prosocial investingEarn a passive income with prosocial investing
Earn a passive income with prosocial investing
Colin R. Turner
 

Recently uploaded (20)

Role of Information Technology in Revenue - Prof Oyedokun.pptx
Role of Information Technology in Revenue  - Prof Oyedokun.pptxRole of Information Technology in Revenue  - Prof Oyedokun.pptx
Role of Information Technology in Revenue - Prof Oyedokun.pptx
 
Independent Study - College of Wooster Research (2023-2024) FDI, Culture, Glo...
Independent Study - College of Wooster Research (2023-2024) FDI, Culture, Glo...Independent Study - College of Wooster Research (2023-2024) FDI, Culture, Glo...
Independent Study - College of Wooster Research (2023-2024) FDI, Culture, Glo...
 
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
Tax System, Behaviour, Justice, and Voluntary Compliance Culture in Nigeria -...
 
Sources of Revenue for State Government - Prof Oyedokun.pptx
Sources of Revenue for State Government - Prof Oyedokun.pptxSources of Revenue for State Government - Prof Oyedokun.pptx
Sources of Revenue for State Government - Prof Oyedokun.pptx
 
Does teamwork really matter? Looking beyond the job posting to understand lab...
Does teamwork really matter? Looking beyond the job posting to understand lab...Does teamwork really matter? Looking beyond the job posting to understand lab...
Does teamwork really matter? Looking beyond the job posting to understand lab...
 
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
 
快速制作美国迈阿密大学牛津分校毕业证文凭证书英文原版一模一样
快速制作美国迈阿密大学牛津分校毕业证文凭证书英文原版一模一样快速制作美国迈阿密大学牛津分校毕业证文凭证书英文原版一模一样
快速制作美国迈阿密大学牛津分校毕业证文凭证书英文原版一模一样
 
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.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
 
OAT_RI_Ep20 WeighingTheRisks_May24_Trade Wars.pptx
OAT_RI_Ep20 WeighingTheRisks_May24_Trade Wars.pptxOAT_RI_Ep20 WeighingTheRisks_May24_Trade Wars.pptx
OAT_RI_Ep20 WeighingTheRisks_May24_Trade Wars.pptx
 
Abhay Bhutada Leads Poonawalla Fincorp To Record Low NPA And Unprecedented Gr...
Abhay Bhutada Leads Poonawalla Fincorp To Record Low NPA And Unprecedented Gr...Abhay Bhutada Leads Poonawalla Fincorp To Record Low NPA And Unprecedented Gr...
Abhay Bhutada Leads Poonawalla Fincorp To Record Low NPA And Unprecedented Gr...
 
SWAIAP Fraud Risk Mitigation Prof Oyedokun.pptx
SWAIAP Fraud Risk Mitigation   Prof Oyedokun.pptxSWAIAP Fraud Risk Mitigation   Prof Oyedokun.pptx
SWAIAP Fraud Risk Mitigation Prof Oyedokun.pptx
 
Pensions and housing - Pensions PlayPen - 4 June 2024 v3 (1).pdf
Pensions and housing - Pensions PlayPen - 4 June 2024 v3 (1).pdfPensions and housing - Pensions PlayPen - 4 June 2024 v3 (1).pdf
Pensions and housing - Pensions PlayPen - 4 June 2024 v3 (1).pdf
 
FCCS Basic Accounts Outline and Hierarchy.pptx
FCCS Basic Accounts Outline and Hierarchy.pptxFCCS Basic Accounts Outline and Hierarchy.pptx
FCCS Basic Accounts Outline and Hierarchy.pptx
 
WhatsPump Thriving in the Whirlwind of Biden’s Crypto Roller Coaster
WhatsPump Thriving in the Whirlwind of Biden’s Crypto Roller CoasterWhatsPump Thriving in the Whirlwind of Biden’s Crypto Roller Coaster
WhatsPump Thriving in the Whirlwind of Biden’s Crypto Roller Coaster
 
Solution Manual For Financial Accounting, 8th Canadian Edition 2024, by Libby...
Solution Manual For Financial Accounting, 8th Canadian Edition 2024, by Libby...Solution Manual For Financial Accounting, 8th Canadian Edition 2024, by Libby...
Solution Manual For Financial Accounting, 8th Canadian Edition 2024, by Libby...
 
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
 
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
一比一原版(UoB毕业证)伯明翰大学毕业证如何办理
 
Financial Assets: Debit vs Equity Securities.pptx
Financial Assets: Debit vs Equity Securities.pptxFinancial Assets: Debit vs Equity Securities.pptx
Financial Assets: Debit vs Equity Securities.pptx
 
Earn a passive income with prosocial investing
Earn a passive income with prosocial investingEarn a passive income with prosocial investing
Earn a passive income with prosocial investing
 

theorycoin.pptx

  • 1. Introduction to Cryptographic Currencies Claudio Orlandi cs.au.dk/~orlandi Thanks to: Jon K. Sørensen and Peter S. Nordholt
  • 2. Leave while you can! • I will NOT talk about: – Politics – Economics – … • Coming up next: – Algorithms – Cryptography – …
  • 3. Outline • Part 0: a little history • Part 1: TheoryCoin – How to create coins – How to transfer coins – How to store coins • Part 2: diff( , ) • Part 3: Problems and issues
  • 5. The 1990s David Chaum and anonymous ecash “The difference between a bad electronic cash system and well-developed digital cash will determine whether we will have a dictatorship or a real democracy” (attributed to Chaum)
  • 7. Chaum’s anonymous e-cash anonymous secure (no double-spending) only transfer (no creation/storage) …and bankrupted in 1999
  • 8. The advent of Bitcoin • 2009: Bitcoin announced by Satoshi Nakamoto – Pseudonym for person or group of person • 2009-2011: slow start… • 2011-2013: Silk Road and Dread Pirate Roberts • End 2013: Bitcoin price skyrockets – and the world notices!
  • 9. Outline • Part 0: a little history • Part 1: TheoryCoin – How to create coins – How to transfer coins – How to store coins • Part 2: diff( , ) • Part 3: Problems and issues
  • 10. TheoryCoin: How to create money 1. Everyone tries to solve a puzzle 2. The first one to solve the puzzle gets 1 TC 3. The solution of puzzle i defines puzzle i+1
  • 11. TheoryCoin: How to create money H L ∈ {0,1}* R ∈ {0,1}* T ∈ {0,1}d SolvePuzzle(L){ repeat{ R = my_name || i++ T = H(L,R) }while(T ≠ 0d) return R } The puzzle: given L, find R such that T=0d (a random function) * aka Proof-of-Work
  • 12. TheoryCoin: (coins to ppl) How to create money H x0 = Start! x1 =(P1, i1) 000…000 x2=(P2, i1) H 000…000 x3=(P3, i3) H 000…000 P3 P1 P2 x1 x1 x2 x2 x3 x3 * aka the blockchain
  • 13. x7=(P3, i7) x6=(P3, i6) x5=(P5, i5) x0=Start! x1=(P1, i1) x2=(P2, i2) x3=(P3, i3) x4=(P4, i4) TheoryCoin: How to create money * aka the 51% attack
  • 14. TheoryCoin: How to create money Recap: Solve the next puzzle  get a coin – To “solve” puzzle i find xi s.t H(xi-1,xi)=0d – The longest chain defines “next puzzle” – The name in block xi “gets” coin i.
  • 15. Outline • Part 0: a little history • Part 1: TheoryCoin – How to create coins – How to transfer coins – How to store coins • Part 2: diff( , ) • Part 3: Problems and issues
  • 16. TheoryCoin: How to transfer money (Digital) Signatures – Only you can sign – Everyone can verify – You cannot deny Give coin 3 to Jesper Claudio
  • 17. TheoryCoin: How to transfer money Gen Sign Verify message message, signature accept/reject secret key public key “Your username” “Your pin code”
  • 18. P3 P1 m=“P3 gives coin 3 to P1” s=Sig(sk3,m) If Ver(pk3,m,s) = accept and P3 owns coin 3 then return accept TheoryCoin: How to transfer money
  • 19. P3 P1 P2 accept accept TheoryCoin: How to transfer money m1=“P3 gives coin 3 to P1” s1=Sig(sk3,m1) m2=“P3 gives coin 3 to P2” s2=Sig(sk3,m2) * aka double spending
  • 20. P3 P1 TheoryCoin: How to transfer money ... (m1,s1) ... (m2,s2) ... (m4,s4) m1 = “P3 gives coin 3 to P1” s1 = Sig(sk3,m1) m2 = “P3 gives coin 3 to P2” s2 = Sig(sk3,m2) write (m1,s1) write (m2,s2) read (m1,s1) P2 read (m2,s2) accept reject P4 m4 = “P1 gives coin 3 to P4” s4 = Sig(sk1,m4) write (m4,s4) read (m4,s4)
  • 21. Outline • Part 0: a little history • Part 1: TheoryCoin – How to create coins – How to transfer coins – How to store coins • Part 2: diff( , ) • Part 3: Problems and issues
  • 22. TheoryCoin: How to store money Main Idea: Record transfers in the blockchain
  • 23. x4=(P4, (m,s), i4) P1 TheoryCoin: How to store money P3 P2 P4 (m,s) (m,s) (m,s) SolvePuzzle(L,...){ repeat{ R = my_name||(m,s)|| i++ T = H(L,R) }while(T ≠ 0d) return R }
  • 24. Outline • Part 0: a little history • Part 1: TheoryCoin – How to create coins – How to transfer coins – How to store coins • Part 2: diff( , ) • Part 3: Problems and issues
  • 25. diff( , ) How is money created in Bitcoin? • New block every ~10 mins – d adjusted every ~2000 blocks • H = 2-SHA2 • Initial reward: 50 BTC – Halved every ~4 years (now 25 BTC)
  • 26. diff( , ) How is money transferred in Bitcoin? P1 gives 14 to P1 Transaction fee 1 Example: P1 wants to give 60 to P2 ... gives 50 to P1 … gives 25 to P1 P1 gives 60 to P2
  • 27. diff( , ) How is money stored in Bitcoin? • Transaction in orphaned blocks are invalid – Wait 6 blocks (~1 hour) before accepting transaction. – Checkpoints to prevent complete history rollback. • All transaction are stored in the blockchain – (Currently ~14 GB)
  • 28. Outline • Part 0: a little history • Part 1: TheoryCoin – How to create coins – How to transfer coins – How to store coins • Part 2: diff( , ) • Part 3: Problems and issues
  • 29. Anonymity? • Problem: – Every transaction ever made is recorded forever • Solution? – Use new identity for each transaction • But: – Heuristics allow to cluster identities • Anonymous alternatives: – Zerocoin, Zerocash…
  • 30. Users? (and their devices) • Unfortunate property of DSA • This address 1HKywxiL4JziqXrzLKhmB6a74ma6kxbSDj probably stole ~250000kr this way (due to bug in Android Java based random generator) Extractor Sig(sk,m1,r) Sig(sk,m2,r) sk
  • 31. Programmable money? “Bitcoin uses a scripting system for transactions. Forth-like, Script is simple, stack-based, and processed from left to right. It is purposefully not Turing-complete, with no loops.” E.g., “P1 gives 1 BTC to P2 if at least 2 out of (P1,P2,P3) sign this transaction” Functionality: more than money? Security: malware payments?
  • 32. Mining pools • Solving puzzles (mining) is hard! – Miners join pools and share work/reward • How to optimally split work? • Mechanism design? – rational miner? – how to allocate reward?
  • 33. A final word… Distributed currencies: for the good guys or the bad guys? – Crime is bad! Tax evasion is bad! – But sometimes governments are bad too! Thanks! Questions?
  • 34. Sources: Learn about signatures/ecash/cryptography at csaudk https://services.brics.dk/java/courseadmin/crypto/ https://services.brics.dk/java/courseadmin/cpt https://services.brics.dk/java/courseadmin/CryCom Story of Chaum and DigiCash (to be taken with a grain of salt) http://cryptome.org/jya/digicrash.htm Bitcoin paper and announcement http://article.gmane.org/gmane.comp.encryption.general/12588/ http://www.mail-archive.com/cryptography@metzdowd.com/msg10142.html This pizza cost 750,000 usd http://motherboard.vice.com/blog/this-pizza-is-worth-750000 Lily Allen turns down btcs https://twitter.com/lilyallen/statuses/419942070770741249 Signature attack http://eprint.iacr.org/2013/734 Deanonymizing http://cseweb.ucsd.edu/~smeiklejohn/files/imc13.pdf http://eprint.iacr.org/2012/584 Zerocoin/Zerocash http://zerocoin.org/ Graphs, stats etc www.blockchain.info Comparison with Altcoins http://www.coinwarz.com/cryptocurrency Bitcoin stolen from TV http://nymag.com/daily/intelligencer/2013/12/bloomberg-anchors-christmas-bitcoin-gets-stolen.html Visa/Mastercard vs Wikileaks http://www.forbes.com/sites/andygreenberg/2010/12/07/visa-mastercard-move-to-choke-wikileaks/ Not in the talk, but very interesting: Silkroad essentials http://exitevent.com/privacy-tor-btc-and-what-the-silk-road-crackdown-means-to-you-131112.asp http://arstechnica.com/tech-policy/2013/10/how-the-feds-took-down-the-dread- pirate-roberts/ http://pando.com/2014/01/02/with-130m-of-bitcoin-wealth-and-plans-to-sell-the-fbi-could-rattle-the-virtual-currency-cage The value overflow bug https://en.bitcoin.it/wiki/Common_Vulnerabilities_and_Exposures#CVE-2010-5139 The March 2013 chain fork https://bitcoin.org/en/alert/2013-03-11-chain-fork Buggy transaction, mistery miner https://blockchain.info/tx-index/3618498/4005d6bea3a93fb72f006d23e2685b85069d270cb57d15f0c057ef2d5e3f78 https://bitcointalk.org/index.php?topic=67634.0 The problem with “checkpointed” bitcoin http://www.links.org/files/decentralised-currencies.pdf This presentation contains copyrighted images the use of which has not always been specifically authorized by the copyright owner. I am making the material available for educational purposes only and I believe this constitutes a 'fair use'.