Pern Hui Chia
Q2S NTNU Trial lecture, 7 Dec 2012, Trondheim
Bitcoin: P2P Digital Currency Pern Hui Chia Q2S NTNU Trial - - PowerPoint PPT Presentation
Experimental Bitcoin: P2P Digital Currency Pern Hui Chia Q2S NTNU Trial lecture, 7 Dec 2012, Trondheim Outline Background : Bitcoin How it works Risks & measures Economics and society Summary Bitcoin | Outline
Pern Hui Chia
Q2S NTNU Trial lecture, 7 Dec 2012, Trondheim
Bitcoin | Outline 2
– Bartering => commodity money => coinage => bank notes
Source: wikipedia.org
Bitcoin | Background 4
– Cash – relatively anonymous means of payment – E cash (Chaum, Fiat & Naor 1988)
– Many other academic papers followed.. but none takes off
Bitcoin | Background 5
– Why not central issuers & authorities?
– B-money (Dai 1998) – crypto-anarchy, need not governments
– Bitcoin (Nakamoto 2008) – no trust needed, assume majority are benign
Bitcoin | Background 6
Source: wikipedia.org
Bitcoin | Background 7
– Rate per 4 year: 10.5m, 5.2m, 2.6m, .. – Total BTC (2140) = 21m
– $13 per BTC – Market capital >$138m – 31k daily transactions
2140 2009 21m
Controlled Money Supply
Bitcoin | Background 8
Source: en.bitcoin.it/wiki
– Expected money supply
– No control of central authority – attract libertarians (and illegal activities) – Openness: open-source, APIs => 3rd party services (mixer, exchanges) flourishes – Infinite divisibility – Achilles’ heel of strong anonymity
– Others
Bitcoin | Background 10
– Unlike e-cash (Chaum et al. 1988) where bank generates & verifies coins
– Transaction history (not balances) – Public
Source: Bitcoin: A technical Introduction [15]
– Cannot spend w/o private keys – Sign [ hash ( public key of recipient + amount + previous transaction ) ] – Multiple inputs (payer accounts), multiple outputs (recipients public keys)
Source: Nakamoto 2008
Bitcoin | Design 13
– Need:
– 1-way-ness ensures data exists (transaction occurs) at the time of hashing
– Proof-of-Work – computational puzzles, hard to cheat – Successful nodes rewarded with Bitcoin == ‘gold mining’
Bitcoin | Design 14
– Put unconfirmed transactions in blocks – Compute hash (SHA-256) – Success = hash has #leading-zeros e.g., 00000000000004d7d38d84545b...
– Else, increment nonce & re-compute
Bitcoin | Design 15
– New transactions broadcasted (best-effort) – Individual miners group transactions in respective block
– If found, solution (block) broadcasted to all – Miners accept solved-block if all transactions in block are valid
– Forks (racing) possible – always accept the longest chain
– Need to re-do proof-of-work
Bitcoin | Design 16
– Depends on anonymous public keys – Users encouraged to create new key pairs per transaction – costless – But,
Bitcoin | Design 17
– Extremely powerful pooled miners
Slush BTC Guild BitMinter – But, can only double-spend
benign (Nakamoto 2008)
>50%
Source: blockchain.info, 3 Dec 2012
– Slow transactions – wait (tens of minutes) – Fast transactions (e.g., buying in stores, taxi)
– Listening period: wait for P2P delays – Observers: self-report double-spends
– Nodes should alert double-spending proactively
Bitcoin POS
Source: http:// en.bitcoin.it/wiki
Bitcoin | Risks & Measures 20
– Threshold cryptography – store keys in multiple locations (Barber et al. 2012)
– Can they protect our keys?
– Secure backup needed
Bitcoin | Risks & Measures 21
– Not a prominent design goal
– Passive tracing can already learn a lot
– Active tracing – marked coins, collaborative attacks
Bitcoin | Risks & Measures 22
– Metrics: address unlinkability, profile indistinguishability – Possible information leaks:
– Multi-input transactions – Shadow key created to receive change » Current implementation doesn’t pay multiple recipients
– Mixers & exchanges can help, but centralized?!
Bitcoin | Risks & Measures 23
– Skewed distribution: account balance, # transactions, # keys – 73% transactions < 10 BTC – Few are using the system extensively
– Other result: 78% minted coins not used
Bitcoin | Risks & Measures 24
– Attack may not be profitable but can destroy trust => devaluation
– Easy to make mistakes (or phished) with pseudonyms – Transactions irreversible
Bitcoin | Risks & Measures 25
– New coins or transaction fees – But, miners may be incentivized not to propagate information (Babaioff et al. 2011)
Bitcoin | Economics & Society 27
– WordPress accepts Bitcoin – make publishing democratic (Skelton 2012)
– Wikileaks gets Bitcoin donation (Matonis 2012)
Bitcoin | Economics & Society 28
– Consider
– Supercomputer (K in Japan), – Successful botnet (~30m bots) – Virtual protest (10% of 843M Facebook users) – Only moderate cost reduction possible : <1 magnitude order – Large ecological footprint : 0.4 – 2% global CO2 emission – Should reuse byproducts of PoW or heat
Bitcoin | Economics & Society 29
– No protection against misbehaviors: double-spending, theft of keys, DoS, or losses – EFF – stop using Bitcoin as a donation option (Cohn 2011)
– EU Electronic Money Directive (Jacobs 2011)
– Silk Road – underground drug marketplace – hidden service in Tor (Christin 2012) – Money laundering / tax evasion?
money-transmitting business [19]
Bitcoin | Economics & Society 30
– Ponzi scheme? Deflation => early adopters advantage – Consumers prefer local currencies? – Volatile values, hard to price goods
Bitcoin | Economics & Society 31
– Assume majority honesty – No strong anonymity
– No single point of failure (or uncontrolled money-printing), freedom – But, illegal activities and misuses – Low-cost? Think green
Bitcoin | Summary 33
1.
Proof-of-Work? Scenarios Inspired by the Bitcoin Currency, WEIS 2012. 2.
Bitcoin, TR, 2012. 3.
4.
Attacks on Fast Payments in Bitcoin, CCS 2012. 5.
marketplace, TR 2012. 6.
FC 2012. 7.
8.
Exchanges, 10(3), 2011. 9.
Bitcoin | Reference 34
blockade-with-bitcoin/, Aug 2012.
http://people.mozilla.com/~bwarner/bitcoin/slides.html, under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
payments-1052538-1.html. Last accessed: 4 Dec 2012.
Bitcoin | Reference 35
chia@q2s.ntnu.no
Bitcoin | Thank you 36