altcoins

32
Altcoins: Alternate Designs for Cryptocurrency CS4501 Fall 2015 David Evans and Samee Zahur University of Virginia

Upload: sameezahur

Post on 09-Jan-2017

5.852 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Altcoins

Altcoins: Alternate Designs for

CryptocurrencyCS4501 Fall 2015

David Evans and Samee ZahurUniversity of Virginia

Page 2: Altcoins

Elevator Pitch: Today• Blockchain Voting, Sugat Poudel, Austin J. Varshneya, Xhama Vyas• Bitcoin at Point of Sale, Elizabeth Kukla• Vending on Dark Net Markets, Collin Berman• Distributed Bitcoin Mixing with Interest, Carter Hall, Reid Bixler• Analyzing the Feasibility of a Donation Accountability System in

Bitcoin, Kienan Adams

Page 3: Altcoins

What’s wrong with it?

• Confirmations are slow• Not completely anonymous• Not quite decentralized• Volatile price

Page 4: Altcoins

Alternate designs• Litecoin: different proof of work

• Ripple: no proof of work

• Ethereum: distributed programs

Page 5: Altcoins

coinmarketcap.com

Page 6: Altcoins

Litecoin• Faster confirmations: 2.5 minutes per block on average• Proof of work: scrypt• Less valuable

Page 7: Altcoins

• http://www.cryptocoincharts.info

www.cryptocoincharts.info

Page 8: Altcoins
Page 9: Altcoins

RippleFaster transactions by eliminating proof of work

Page 10: Altcoins

“Rippling” Consensus

Page 11: Altcoins

Byzantine Generals ProblemAll generals propose either “attack” or “retreat” as the next step. They all must reach consensus. Some generals might be corrupted

Page 12: Altcoins

Byzantine Limit

No unconditionally secure algorithm exists if

Page 13: Altcoins

RippleUses a variation of “Fast Byzantine Paxos”, which can tolerate Assumes a “well connected” graph.

Page 14: Altcoins

Algorithm1. Each server makes its own “candidate list”2. They check validity3. Vote on which transactions to keep4. Any transaction with too few votes are discardedRepeat

Finally, transactions over 80% vote among neighbors are kept

Page 15: Altcoins

Bitcoin vs Ripple

Page 16: Altcoins

Bitcoin vs RippleNo proof of work• Anybody can join, more decentralized• Anybody can claim to be many people• Extremely fast: transactions confirmed in a few seconds

Page 17: Altcoins

Deployment

Page 18: Altcoins

coinmarketcap.com

Page 19: Altcoins

Ethereum• Proof of work hash: Ethash (custom)• Mean block mining period: 12 seconds• Block reward: … complicated …• Scripting language: Turing complete

Page 20: Altcoins

cryptorps.com

Page 21: Altcoins

“Smart Contracts”Careful of security pitfalls!

Page 22: Altcoins

Gas!

Page 23: Altcoins

Transaction• Recipient• Gas price• Gas limit• Value• Signature

Page 24: Altcoins
Page 25: Altcoins

Mining Reward

•A static block reward for the 'winning' block, consisting of exactly 5.0 Ether •All of the gas expended within the block […]. •An extra reward for including 1/32 Uncles as part of the block

Page 26: Altcoins

ContractsSnippets of code floating around in the network. They can send messages/money/gas to each other. Each transaction triggers at least one message.

Contracts have their own:• Account balance• Stack• Memory (integer-indexed)• Storage (key-value)

Page 27: Altcoins

Common Pitfalls

Page 28: Altcoins

Common Pitfalls• Everything is public• Race conditions• Limited stack

Page 29: Altcoins
Page 30: Altcoins

Bitcoin the ultimate• There are ways to enrich it• Make it faster• More decentralized

Page 31: Altcoins

The end: elevator pitches

Page 32: Altcoins

Elevator Pitch: Today• Blockchain Voting, Sugat Poudel, Austin J. Varshneya, Xhama Vyas• Bitcoin at Point of Sale, Elizabeth Kukla• Vending on Dark Net Markets, Collin Berman• Distributed Bitcoin Mixing with Interest, Carter Hall, Reid Bixler• Analyzing the Feasibility of a Donation Accountability System in

Bitcoin, Kienan Adams