SlideShare ist ein Scribd-Unternehmen logo
1 von 36
Downloaden Sie, um offline zu lesen
Whirlwind tour of decentralized finance and blockchain
Gus Gutoski
International Conference on Information & Communication Technologies
’Next Generation Technologies’
Institute of Business Administration (IBA)
Karachi, Pakistan
November 16, 2019
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 1 / 36
Bitcoin Basic design
Bitcoin’s UTXO model (Unspent TransaXion Output)
Each stash of bitcoin (UTXO) is
associated with a public key for
a signature scheme (ECDSA)
To spend a UTXO, need to
produce a signature valid for
that UTXO’s public key
A transaction consumes UTXOs
and creates new UTXOs
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 2 / 36
Bitcoin Basic design
The Bitcoin blockchain
Transactions are aggregated by miners into blocks
Peers on the network gossip new transactions, blocks
Each block contains the hash (SHA-256) of the previous block
Blocks form a blockchain
Can’t modify the contents of a block without breaking the hash chain
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 3 / 36
Bitcoin Proof-of-work consensus
Proof-of-work (PoW) consensus in Bitcoin
Q. How do peers decide which is the “correct” blockchain?
A. It’s the one with the most work embedded in it
Peers calculate the difficulty parameter based on past
observations of the blockchain
New blocks are not valid unless they solve a PoW puzzle of
sufficient difficulty
Nonce is a free parameter in the block header
Miners find a nonce such that the block’s hash meets the
difficulty condition
High difficulty −→ miners must do lots of work
Miners are compensated with new bitcoins, transaction fees
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 4 / 36
Bitcoin Proof-of-work consensus
A recent Bitcoin block
[link]
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 5 / 36
Bitcoin Proof-of-work consensus
Security of PoW consensus
Intuition:
An attacker who wishes to convince the network to switch to a different blockchain must
produce a blockchain with more embedded work than any other
Such an attacker must do more computational work than every other miner in the world
combined
Bitcoin’s original proposal did not include a formal proof of security
How does one even define security??
Security has been proven under optimistic assumptions: e.g. An altruistically-honest
majority of the computational power
Theoretical vulnerabilities are known: an attacker who controls x% of the computational
power can claim more than x% of the block rewards for certain values of x
This becomes a concern only when x > 25%
It seems that such an attack on Bitcoin has never occurred
“Seflish mining” [link]
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 6 / 36
Bitcoin Proof-of-work consensus
Electricity consumption of proof-of-work
Difficulty is calibrated so that a new Bitcoin block is found every ∼10 minutes, regardless
of how much work was done to produce the block.
A computational arms race among miners
Computation consumes electricity
Current estimates: 6–8 GW
Comparable to the electricity usage of Austria (40th largest consumer country)
[digiconomist.net]
The Bitcoin network computes 91 quintillion (253) SHA-256 hashes per second
Computational cost of SHA-256 is ∼ 216
operations =⇒ the Bitcoin network performs 269
operations per second. Compare with 80-bit security...
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 7 / 36
Bitcoin Miscellaneous
Miscellaneous
10-minute blocks + 1MB block size = 7 transactions/second
Centralization forces: ASICs, mining pools, custodial exchanges
Social problem: users are in charge of their own security. Phishing, SIM hacks, custodial
(exchange) hacks
Underyling cryptography is ancient: hash functions, digital signatures
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 8 / 36
Intro to Ethereum
What is Ethereum?
Ethereum is a decentralized computer; anyone can write a “dapp.”
Compare: Bitcoin is a decentralized computer with exactly one dapp.
Proposed in 2013, crowd sale in 2014, mainnet launch on 2015-jul-30.
Crowd sale: users purchased ether using bitcoin at 1 BTC = 2000 ETH. Total dollar
value raised: $18M. (At the time bitcoin was $600.)
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 9 / 36
Intro to Ethereum
How does Ethereum work?
Cryptography is similar to Bitcoin:
Digital signatures: Users sign transactions
Hash functions: Miners compete via PoW to add transactions to the blockchain
Account model. (Compare Bitcoin’s UTXO model.)
Each account has an ether balance
Externally owned (EO): controlled by a person
Contract: controlled by code, storage
Contracts run their code each time they receive a message.
A user executes code by pushing a transaction containing a message from an EO account
she owns to a contract account. Contracts can send messages to other contracts.
Users pay for their computations with ether
Intended to protect against spam/DoS
These payments are called “gas”
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 10 / 36
Intro to Ethereum
How does gas work?
Code is compiled to Ethereum Virtual Machine (EVM) bytecode
Each EVM instruction has a price in gas units
The gas–ether price floats freely
15-second block time + per-block gas limit = maximum 15 transactions/second
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 11 / 36
What can be done with Ethereum-like platforms? Custom tokens
Even more cryptocurrencies! The ERC20 token standard
It is easy to write an Ethereum contract that implements a new cryptocurrency
There is an Ethereum dapp standard called ERC20
Analogy: Abstract class, interface in object-oriented programming
Contracts that conform to ERC20 can plug into a whole ecosystem of apps, dapps.
“A total of 223,123 Token Contracts found” as of 2019-nov-05. [etherscan.io]
16 of the top 20 all-time highest-funded crowdfunding projects were executed on
Ethereum. Many of these are ERC20 tokens. [Wikipedia]
Several of the 20 biggest cryptocurrencies are ERC20 tokens [coinmarketcap.com]
[etherscan.io]
Maker DAI BAT Augur 0x
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 12 / 36
What can be done with Ethereum-like platforms? Digital collectibles
Digital collectibles! The ERC721 non-fungible token standard
Non-fungible: unique, non-divisible tokens
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 13 / 36
What can be done with Ethereum-like platforms? Digital collectibles
ERC721 Example: Cryptokitties
Breed collectible kitty images on Ethereum [cryptokitties.co]
Buy, sell unique cryptokitties [Kitty Sales]
Several kitties have sold for $100k+
Total kitty sales to date is $27M+
Cryptokitties transactions bogged down the entire Ethereum network in December 2017
[BBC News]
Ethereum-wide gas price increased by 10x or more
10-20% of all Ethereum transactions were for Cryptokitties
Pending transaction pool grew by 6x
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 14 / 36
What can be done with Ethereum-like platforms? Digital collectibles
ERC721 Example: Gods Unchained
Collectible digital card game. Buy, sell cards on Ethereum. [godsunchained.com]
No one can alter, confiscate your cards.
Compare: Blizzard nerfs Hearthstone cards
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 15 / 36
What can be done with Ethereum-like platforms? Digital collectibles
ERC721 Example: Ethereum Name Service (ENS)
Map human-readable names (‘alice.eth’) to machine-readable identifiers
IP address ‘192.168.0.1’,
Ethereum public key ‘0xC48E11afA115DB88A8fb3EF5F4ed7c8219020871...’
Tor .onion address 3g2upl4pq6kufc4m.onion
anything you want!
Names can be bought, sold like any other ERC721 token
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 16 / 36
What can be done with Ethereum-like platforms? Digital collectibles
Holy grail: Decentralized DNS, PKI
Domain Name System (DNS), Public-key Infrastructure (PKI) are critical worldwide systems
In principle: decentralization promises greatness
Can’t be censored
Permissionless worldwide access
Reduced risk of monopoly rents
Arguably more secure than traditional DNS, PKI solutions
In practice: decentralized governance is tricky
Example: Who authorizes new top-level domains (.eth, .com, ...)?
How to protect against name-squatting, trademark violations?
Browser support for ENS:
Natively in Opera, Brave
Via browser extension (Metamask!) in major browsers Chrome, Firefox
Metamask in a Tor browser automatically resolves .onion addresses
(e.g. duckduckgotor.eth −→ 3g2upl4pq6kufc4m.onion)
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 17 / 36
What can be done with Ethereum-like platforms? Stable assets
The need for stable assets
Bitcon, ether, etc are highly volatile assets; their supplies are highly inelastic
More like crypto-gold than crypto-currency!
Normal people do not wish to hold volatile assets
There is demand for a cryptocurrency with stable value (e.g. relative to USD)
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 18 / 36
What can be done with Ethereum-like platforms? Stable assets
Stable asset: Tether
Controversial, centralized token backed by privately-held reserves of USD
Live in 2014 as a Bitcoin overlay, now avaiable as an ERC20 token on Ethereum
Controlled and promoted by Bitfinex—a large cryptocurrency exchange company
A full GAAP audit of reserves was promised but never delivered. Tether has a strained
relationship with accounting firms.
Accusations that Binance used Tether to manipulate the price of bitcoin.
Current price: ∼$1, current supply: >$4 billion
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 19 / 36
What can be done with Ethereum-like platforms? Stable assets
Stable asset: DAI
Mostly-decentralized ERC20 token on Ethereum pegged to USD
Backed by (volatile) ERC20 tokens held in reserve in an Ethereum
contract
Over-collateralized to protect against a decline in reserve value
Relies on an “oracle” for the current USD value of its collateral
Supply of DAI, reserves is automatically adjusted to maintain the USD
peg
Complicated governance
Launched in 2017; current price: ∼$1; current supply: >$100 million
A fascinating experiment, interesting economics questions:
What is the true value of an “over-collateralized” asset?
Peg could be (temporarily?) broken by a sudden, large drop in the USD
value of ether
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 20 / 36
What can be done with Ethereum-like platforms? Oracles
Contract for difference: a simple but powerful example
Suppose: Alice is a farmer who wishes to hedge against the lack of rainfall during the
growing season, Bob is a speculator
1 Alice, Bob each contribute some cyrptocurrency into a contract
2 At the end of the growing season, the contract pays to Alice inverseley based on rainfall, the
rest to Bob.
Replace “rainfall” with “USD price of ether” or anything you want!
Far-reaching applications: insurance against disaster, stablecoins, financial derivatives,
prediction markets, gambling, ...
The big question: How to get accurate rainfall data into Ethereum?
A major open problem: the oracle problem
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 21 / 36
What can be done with Ethereum-like platforms? Smart property
Tokenization of real-world assets (“smart property”)
Let’s fantasize for a moment...
Create tokens that represent ownership of: equities, works of art, vehicles, real estate, . . .
Ownership can be transferred instantly, permissionlessly around the world
Imagine: Anyone in Karachi can own shares of Apple, receive dividends
Imagine: Buy, sell a house without lawyers or archaic government records
Reality check: governments won’t allow it in the foreseeable future
Reality check: what if my private keys are lost, stolen?
Smart property + smart contracts
Imagine: Car loan on Ethereum. If I miss a payment on my car loan then ownership of the
car automatically transfers to my creditor.
Ethereum-aware real assets?
Only the owner of a car’s token can open the door, start the car.
Science fiction: “self-owning” driverless cars have their own currency balance, pay for
their own maintenance from transit revenue
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 22 / 36
Privacy Most blockchains are not private
The ultimate surveillance dystopia
In Bitcoin, Ethereum, etc all transactions are publicly visible
If blockchain takes over the world then:
Every cup of coffee, rideshare trip, hand of poker, drug
prescription, pay cheque, WikiLeaks donation, ... is available
for all the world to see
For business: supply chain, payroll, ... all viewable by
competitors
“Bitcoin is Twitter for your bank account”, “Bitcoin is a
tracking cookie in real life” –Ian Miers
Bold claim: Blockchain cannot take over the world without
better privacy
Everyone is watching you
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 23 / 36
Privacy Most blockchains are not private
Currency, fungibility depend on privacy
Society might not accept tokens that have
passed through unpopular hands
eg. Silk Road, Pirate Bay, political dissidents,
sanctions violators, ...
Not all tokens are equal −→ fungibility is lost
−→ not a currency
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 24 / 36
Privacy Zero-knowledge proofs
Zero-knowledge proofs of knowledge
Given.
1 A function f (·) described, say, by a boolean circuit. (e.g. SHA-256.)
2 An output y. (e.g. A 32-byte output of SHA-256.)
Goal. Prove that I know an input x with y = f (x) without revealing anything about x.
x
(complicated proof)
−−−−−−−−−−−−−−−−→
y
Yes, I believe you know a
preimage of y!
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 25 / 36
Privacy Zero-knowledge proofs
Anonymous currency: Zcash
Designed in 2014 by academic cryptographers [eprint 2014/349]
Fork of Bitcoin with zero-knowledge proofs; independent blockchain
Deployed in 2016, current value of tokens: >$287 million
Implements the Groth16 proposal for a cryptographic primitive called zk-snark
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 26 / 36
Privacy Groth16
The Groth16 zk-snark
SNARK: Succinct Non-interactive ARgument of Knowledge
Scary maths! Quadratic arithmetic programs, elliptic curve pairings
Proof size is independent of the circuit. Wow!
288 bytes for any circuit
Verification is fast: <10ms for the Zcash circuit
Proof creation time is (nearly) acceptable: 7 seconds, 40MB RAM for the Zcash circuit
Groth16 is by far the most practical zk-snark
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 27 / 36
Privacy Other zero-knowledge protocols
A bewildering array of zero-knowledge protocols
zk-snark is a very active area of academic research
Snark properties:
Universal setup—run setup once for a given circuit size s, use it for all circuits with size < s.
trustless setup—no need to trust a ceremony
Small proofs: logarithmic or even constant size
Fast verification: logarithmic vs. sub-linear vs. linear time
Fast prover: linear vs. n log n vs. worse time
Quantum-safe vs. based on discrete log
Recent proposed schemes: GGPR13/Groth16, Pinocchio, Groth-Sahai, Sonic, Plonk,
BulletProofs, Hyrax, Ligero, Spartan, Aurora, SuperSonic, Stark, . . .
Curated list of zero-knowledge resources: https://zkp.science/
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 28 / 36
Privacy Private smart contracts
Private smart contracts?
Recall: Bitcoin = decentralized gold; Ethereum = decentralized computer
If Bitcoin is Twitter for your bank account then Ethereum is Twitter for everything you
do on a computer
Recall: Zcash = decentralized private gold
Q. What is the decentralized private computer?
A. We don’t have one yet. On the drawing board:
Zexe. “Enabling Decentralized Private Computation.” [eprint 2018/962]
Aztec. “The privacy engine on Ethereum.” [link]
Others...
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 29 / 36
Privacy Speculation
Fantasizing about our private future
Crazy ideas:
Supply chain
Don’t give away your data, sell it
Dark pool financial markets
Smart metering
Income tax
Public accountability of secret law (?!) [eprint 2018/664]
Snark the whole blockchain
Credit score
Private health records (Mis-diagnosis resiliency!)
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 30 / 36
The future
Ethereum 2.0
Goals. Reduce/eliminate PoW, higher transaction throughput, reduce load on individual
nodes, . . .
Plan: [link to articles]
Phase 0: Beacon chain. New cryptography! Multi-signatures
Phase 1: Shard chains. 1024 blockchains!
Phase 2: Execution layer. Still under design. Different execution environments (WASM?
zero-knowledge?)
Multi-signatures: [Forum post], [eprint 2018/483]
Given. Many signatures σ1, . . . , σn under many public keys pk1, . . . , pkn for a message m
Aggregate. Compute aggregated signature, public key σ, pk.
Verify. Verifier is convinced that all signatures σ1, . . . , σn are correct by checking only
Verify(pk, σ, m).
Benefit. A much lighter computational load on Ethereum nodes
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 31 / 36
The future
Ethereum 2.0
[link]
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 32 / 36
The future
New platforms: alternatives to Ethereum
There are several well-funded, well-staffed initiatives for independent platforms
Algorand, Celo, Dfinity, Polkadot, Tendermint/Cosmos, Tezos, . . .
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 33 / 36
Challenges
Open problems in decentralized finance and blockchain
1 Reduce / eliminate proof-of-work
New platforms aim to replace PoW with more sophisticated consensus algorithms
2 Scalability
Currently, every node must process every transaction in the world!
3 Data availability
Any node that does not process every transaction in the world must be able to find data if
needed
Hard problem! It is impossible to attribute fault in a data withholding attack
4 Decentralized, trustworthy oracles
A hard problem with no good answer
Proposals: [Astrea], [Augur], [DAI], [UMA]
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 34 / 36
Challenges
Open problems in decentralized finance and blockchain
5 Stablecoins
Each existing solution has its own problems
Crazy idea: the anti-bitcoin: perfectly elastic supply via PoW. [Meter.io] [Celerium]
6 Bug-resistant smart contracts
The DAO is a high-profile example of pitfalls of bug-prone smart contract platforms. Solidity
is JavaScript inspired—boo! Tezos uses OCaml, a functional language with provable
guarantees
7 Identity, personhood
we could do so much more if we could protect against sock-puppet attacks
[ethereum wiki: problems]
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 35 / 36
Developing countries
Potential benefits of DeFi for developing countries
Sound money. (Or, at least, sounder money.)
In places with high inflation, cryptocurrency is less volatile than the local currency
Access to USD-stable assets with no need for a US banking license
Send money across borders: inexpensive remittances, avoid capital controls
Financial services for the unbanked
Can’t get a loan to start your business? Get a DeFi loan collateralized with smart property!
Can’t get insurance against poor rainfall? Participate in a prediction market!
Documentation of property rights
If someone steals your home, at least you can now provide irrefutable cryptographic proof of
theft!
DeFi is not a panacea; it may never solve these problems. But I see no reason not to try.
Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 36 / 36

Weitere ähnliche Inhalte

Was ist angesagt?

Bitcoin and Ethereum
Bitcoin and EthereumBitcoin and Ethereum
Bitcoin and EthereumJongseok Choi
 
Intro to Blockchain Slides
Intro to Blockchain SlidesIntro to Blockchain Slides
Intro to Blockchain SlidesShannon Wells
 
Blockchain - preparing for the next steps
Blockchain - preparing for the next stepsBlockchain - preparing for the next steps
Blockchain - preparing for the next stepsSebastien Meunier
 
Blockchain and Real Estate - IBREA conference
Blockchain and Real Estate - IBREA conferenceBlockchain and Real Estate - IBREA conference
Blockchain and Real Estate - IBREA conferenceJeff Garzik
 
Abhishek jaiswal blockchain
Abhishek jaiswal blockchainAbhishek jaiswal blockchain
Abhishek jaiswal blockchainAbhishek Jaiswal
 
Bitcoin, Ethereum, Smart Contract & Blockchain
Bitcoin, Ethereum, Smart Contract & BlockchainBitcoin, Ethereum, Smart Contract & Blockchain
Bitcoin, Ethereum, Smart Contract & BlockchainJitendra Chittoda
 
An introduction to Blockchain (for nontechnical people)
An introduction to Blockchain (for nontechnical people)An introduction to Blockchain (for nontechnical people)
An introduction to Blockchain (for nontechnical people)Miguel Neumann
 
Ethereum Blockchain explained
Ethereum Blockchain explainedEthereum Blockchain explained
Ethereum Blockchain explainedEthWorks
 
Blockchain and you - An Intro to Bitcoin and the Blockchain
Blockchain and you - An Intro to Bitcoin and the BlockchainBlockchain and you - An Intro to Bitcoin and the Blockchain
Blockchain and you - An Intro to Bitcoin and the BlockchainJay Kannaiyan
 
Blockchain: The Information Technology of the Future
Blockchain: The Information Technology of the FutureBlockchain: The Information Technology of the Future
Blockchain: The Information Technology of the FutureMelanie Swan
 
Introduction to blockchain and crypto currencies
Introduction to blockchain and crypto currenciesIntroduction to blockchain and crypto currencies
Introduction to blockchain and crypto currenciesRohas Nagpal
 
Blockchain 50 companies
Blockchain 50 companiesBlockchain 50 companies
Blockchain 50 companiesmakipei
 
Cryptocurrency and the myth of the trustless transaction
Cryptocurrency and the myth of the trustless transactionCryptocurrency and the myth of the trustless transaction
Cryptocurrency and the myth of the trustless transactionlarakilini
 
Bitcoin in a Nutshell
Bitcoin in a NutshellBitcoin in a Nutshell
Bitcoin in a NutshellDaniel Chan
 
Introduction to Bitcoin and ECDSA
Introduction to Bitcoin and ECDSAIntroduction to Bitcoin and ECDSA
Introduction to Bitcoin and ECDSANikesh Mistry
 

Was ist angesagt? (20)

Bitcoin and Ethereum
Bitcoin and EthereumBitcoin and Ethereum
Bitcoin and Ethereum
 
Blockchain - The future of internet
Blockchain - The future of internetBlockchain - The future of internet
Blockchain - The future of internet
 
Intro to Blockchain Slides
Intro to Blockchain SlidesIntro to Blockchain Slides
Intro to Blockchain Slides
 
Blockchain - preparing for the next steps
Blockchain - preparing for the next stepsBlockchain - preparing for the next steps
Blockchain - preparing for the next steps
 
Blockchain and Real Estate - IBREA conference
Blockchain and Real Estate - IBREA conferenceBlockchain and Real Estate - IBREA conference
Blockchain and Real Estate - IBREA conference
 
Abhishek jaiswal blockchain
Abhishek jaiswal blockchainAbhishek jaiswal blockchain
Abhishek jaiswal blockchain
 
Blockchain for Notaries
Blockchain for NotariesBlockchain for Notaries
Blockchain for Notaries
 
Bitcoin, Ethereum, Smart Contract & Blockchain
Bitcoin, Ethereum, Smart Contract & BlockchainBitcoin, Ethereum, Smart Contract & Blockchain
Bitcoin, Ethereum, Smart Contract & Blockchain
 
An introduction to Blockchain (for nontechnical people)
An introduction to Blockchain (for nontechnical people)An introduction to Blockchain (for nontechnical people)
An introduction to Blockchain (for nontechnical people)
 
Blockchains 101
Blockchains 101Blockchains 101
Blockchains 101
 
Ethereum Blockchain explained
Ethereum Blockchain explainedEthereum Blockchain explained
Ethereum Blockchain explained
 
Blockchain and you - An Intro to Bitcoin and the Blockchain
Blockchain and you - An Intro to Bitcoin and the BlockchainBlockchain and you - An Intro to Bitcoin and the Blockchain
Blockchain and you - An Intro to Bitcoin and the Blockchain
 
Blockchain: The Information Technology of the Future
Blockchain: The Information Technology of the FutureBlockchain: The Information Technology of the Future
Blockchain: The Information Technology of the Future
 
Introduction to blockchain and crypto currencies
Introduction to blockchain and crypto currenciesIntroduction to blockchain and crypto currencies
Introduction to blockchain and crypto currencies
 
Ethereum Presentation
Ethereum PresentationEthereum Presentation
Ethereum Presentation
 
BitCoin, P2P, Distributed Computing
BitCoin, P2P, Distributed ComputingBitCoin, P2P, Distributed Computing
BitCoin, P2P, Distributed Computing
 
Blockchain 50 companies
Blockchain 50 companiesBlockchain 50 companies
Blockchain 50 companies
 
Cryptocurrency and the myth of the trustless transaction
Cryptocurrency and the myth of the trustless transactionCryptocurrency and the myth of the trustless transaction
Cryptocurrency and the myth of the trustless transaction
 
Bitcoin in a Nutshell
Bitcoin in a NutshellBitcoin in a Nutshell
Bitcoin in a Nutshell
 
Introduction to Bitcoin and ECDSA
Introduction to Bitcoin and ECDSAIntroduction to Bitcoin and ECDSA
Introduction to Bitcoin and ECDSA
 

Ähnlich wie Whirlwind tour of decentralized finance and blockchain

Blockchain an introduction_n_li
Blockchain an introduction_n_liBlockchain an introduction_n_li
Blockchain an introduction_n_linikinew1
 
W24717 economic limit of bitcoin dan blockhain
W24717 economic limit of bitcoin dan blockhainW24717 economic limit of bitcoin dan blockhain
W24717 economic limit of bitcoin dan blockhainRein Mahatma
 
2019 blockchain economy
2019 blockchain economy2019 blockchain economy
2019 blockchain economyHeung-No Lee
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & EthereumBlockchainHub Graz
 
Bitcoin-the Currency of Future
Bitcoin-the Currency of FutureBitcoin-the Currency of Future
Bitcoin-the Currency of FutureNiraj Dholakia
 
Smart Contracts - The Blockchain Beyond Bitcoin
Smart Contracts - The Blockchain Beyond BitcoinSmart Contracts - The Blockchain Beyond Bitcoin
Smart Contracts - The Blockchain Beyond BitcoinJim McKeeth
 
Bits, Blocks, and Chains: A Concise Examination of Bitcoin and Cryptocurrency...
Bits, Blocks, and Chains: A Concise Examination of Bitcoin and Cryptocurrency...Bits, Blocks, and Chains: A Concise Examination of Bitcoin and Cryptocurrency...
Bits, Blocks, and Chains: A Concise Examination of Bitcoin and Cryptocurrency...Richard Givens
 
Blockchain, smart contracts - introduction
Blockchain, smart contracts - introductionBlockchain, smart contracts - introduction
Blockchain, smart contracts - introductionLukasz Jarmulowicz
 
Uses of Blockchain Technology in the agrifood system
Uses of Blockchain Technology in the agrifood systemUses of Blockchain Technology in the agrifood system
Uses of Blockchain Technology in the agrifood systemChristopher Brewster
 
GLOSSARY. Blockchain : practices and perspectives. 17 Mayo. Paris
GLOSSARY. Blockchain : practices and perspectives. 17 Mayo. ParisGLOSSARY. Blockchain : practices and perspectives. 17 Mayo. Paris
GLOSSARY. Blockchain : practices and perspectives. 17 Mayo. Pariseraser Juan José Calderón
 
CWIN17 Rome / blockchain
CWIN17 Rome / blockchainCWIN17 Rome / blockchain
CWIN17 Rome / blockchainCapgemini
 
Executive summary guild42 elca_blockchain.pptx_v1.0
Executive summary guild42 elca_blockchain.pptx_v1.0Executive summary guild42 elca_blockchain.pptx_v1.0
Executive summary guild42 elca_blockchain.pptx_v1.0Nagib Aouini
 
Introduction to blockchain
Introduction to blockchainIntroduction to blockchain
Introduction to blockchainDivyaKapoor57
 
Bitcoin- Technology beyond Politics
Bitcoin- Technology beyond PoliticsBitcoin- Technology beyond Politics
Bitcoin- Technology beyond PoliticsDr. Juan Trujillo
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and BitcoinHugo Rodrigues
 
Blockchain: The New Technology of Trust
Blockchain: The New Technology of TrustBlockchain: The New Technology of Trust
Blockchain: The New Technology of TrustMarco Segato
 
UL Conference - An Introduction To Bitcoin And The Blockchain
UL Conference - An Introduction To Bitcoin And The BlockchainUL Conference - An Introduction To Bitcoin And The Blockchain
UL Conference - An Introduction To Bitcoin And The BlockchainBrian Driscoll
 

Ähnlich wie Whirlwind tour of decentralized finance and blockchain (20)

Blockchain an introduction_n_li
Blockchain an introduction_n_liBlockchain an introduction_n_li
Blockchain an introduction_n_li
 
An Introduction to Blockchains
An Introduction to BlockchainsAn Introduction to Blockchains
An Introduction to Blockchains
 
W24717 economic limit of bitcoin dan blockhain
W24717 economic limit of bitcoin dan blockhainW24717 economic limit of bitcoin dan blockhain
W24717 economic limit of bitcoin dan blockhain
 
Blockchains in agriculture
Blockchains in agricultureBlockchains in agriculture
Blockchains in agriculture
 
2019 blockchain economy
2019 blockchain economy2019 blockchain economy
2019 blockchain economy
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & Ethereum
 
Bitcoin-the Currency of Future
Bitcoin-the Currency of FutureBitcoin-the Currency of Future
Bitcoin-the Currency of Future
 
Smart Contracts - The Blockchain Beyond Bitcoin
Smart Contracts - The Blockchain Beyond BitcoinSmart Contracts - The Blockchain Beyond Bitcoin
Smart Contracts - The Blockchain Beyond Bitcoin
 
Bits, Blocks, and Chains: A Concise Examination of Bitcoin and Cryptocurrency...
Bits, Blocks, and Chains: A Concise Examination of Bitcoin and Cryptocurrency...Bits, Blocks, and Chains: A Concise Examination of Bitcoin and Cryptocurrency...
Bits, Blocks, and Chains: A Concise Examination of Bitcoin and Cryptocurrency...
 
Blockchain, smart contracts - introduction
Blockchain, smart contracts - introductionBlockchain, smart contracts - introduction
Blockchain, smart contracts - introduction
 
Uses of Blockchain Technology in the agrifood system
Uses of Blockchain Technology in the agrifood systemUses of Blockchain Technology in the agrifood system
Uses of Blockchain Technology in the agrifood system
 
GLOSSARY. Blockchain : practices and perspectives. 17 Mayo. Paris
GLOSSARY. Blockchain : practices and perspectives. 17 Mayo. ParisGLOSSARY. Blockchain : practices and perspectives. 17 Mayo. Paris
GLOSSARY. Blockchain : practices and perspectives. 17 Mayo. Paris
 
CWIN17 Rome / blockchain
CWIN17 Rome / blockchainCWIN17 Rome / blockchain
CWIN17 Rome / blockchain
 
Executive summary guild42 elca_blockchain.pptx_v1.0
Executive summary guild42 elca_blockchain.pptx_v1.0Executive summary guild42 elca_blockchain.pptx_v1.0
Executive summary guild42 elca_blockchain.pptx_v1.0
 
Introduction to blockchain
Introduction to blockchainIntroduction to blockchain
Introduction to blockchain
 
Bitcoin- Technology beyond Politics
Bitcoin- Technology beyond PoliticsBitcoin- Technology beyond Politics
Bitcoin- Technology beyond Politics
 
Blockchain and Bitcoin
Blockchain and BitcoinBlockchain and Bitcoin
Blockchain and Bitcoin
 
Blockchain: The New Technology of Trust
Blockchain: The New Technology of TrustBlockchain: The New Technology of Trust
Blockchain: The New Technology of Trust
 
UL Conference - An Introduction To Bitcoin And The Blockchain
UL Conference - An Introduction To Bitcoin And The BlockchainUL Conference - An Introduction To Bitcoin And The Blockchain
UL Conference - An Introduction To Bitcoin And The Blockchain
 
Block chain introduction
Block chain introductionBlock chain introduction
Block chain introduction
 

Kürzlich hochgeladen

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 

Kürzlich hochgeladen (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 

Whirlwind tour of decentralized finance and blockchain

  • 1. Whirlwind tour of decentralized finance and blockchain Gus Gutoski International Conference on Information & Communication Technologies ’Next Generation Technologies’ Institute of Business Administration (IBA) Karachi, Pakistan November 16, 2019 Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 1 / 36
  • 2. Bitcoin Basic design Bitcoin’s UTXO model (Unspent TransaXion Output) Each stash of bitcoin (UTXO) is associated with a public key for a signature scheme (ECDSA) To spend a UTXO, need to produce a signature valid for that UTXO’s public key A transaction consumes UTXOs and creates new UTXOs Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 2 / 36
  • 3. Bitcoin Basic design The Bitcoin blockchain Transactions are aggregated by miners into blocks Peers on the network gossip new transactions, blocks Each block contains the hash (SHA-256) of the previous block Blocks form a blockchain Can’t modify the contents of a block without breaking the hash chain Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 3 / 36
  • 4. Bitcoin Proof-of-work consensus Proof-of-work (PoW) consensus in Bitcoin Q. How do peers decide which is the “correct” blockchain? A. It’s the one with the most work embedded in it Peers calculate the difficulty parameter based on past observations of the blockchain New blocks are not valid unless they solve a PoW puzzle of sufficient difficulty Nonce is a free parameter in the block header Miners find a nonce such that the block’s hash meets the difficulty condition High difficulty −→ miners must do lots of work Miners are compensated with new bitcoins, transaction fees Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 4 / 36
  • 5. Bitcoin Proof-of-work consensus A recent Bitcoin block [link] Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 5 / 36
  • 6. Bitcoin Proof-of-work consensus Security of PoW consensus Intuition: An attacker who wishes to convince the network to switch to a different blockchain must produce a blockchain with more embedded work than any other Such an attacker must do more computational work than every other miner in the world combined Bitcoin’s original proposal did not include a formal proof of security How does one even define security?? Security has been proven under optimistic assumptions: e.g. An altruistically-honest majority of the computational power Theoretical vulnerabilities are known: an attacker who controls x% of the computational power can claim more than x% of the block rewards for certain values of x This becomes a concern only when x > 25% It seems that such an attack on Bitcoin has never occurred “Seflish mining” [link] Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 6 / 36
  • 7. Bitcoin Proof-of-work consensus Electricity consumption of proof-of-work Difficulty is calibrated so that a new Bitcoin block is found every ∼10 minutes, regardless of how much work was done to produce the block. A computational arms race among miners Computation consumes electricity Current estimates: 6–8 GW Comparable to the electricity usage of Austria (40th largest consumer country) [digiconomist.net] The Bitcoin network computes 91 quintillion (253) SHA-256 hashes per second Computational cost of SHA-256 is ∼ 216 operations =⇒ the Bitcoin network performs 269 operations per second. Compare with 80-bit security... Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 7 / 36
  • 8. Bitcoin Miscellaneous Miscellaneous 10-minute blocks + 1MB block size = 7 transactions/second Centralization forces: ASICs, mining pools, custodial exchanges Social problem: users are in charge of their own security. Phishing, SIM hacks, custodial (exchange) hacks Underyling cryptography is ancient: hash functions, digital signatures Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 8 / 36
  • 9. Intro to Ethereum What is Ethereum? Ethereum is a decentralized computer; anyone can write a “dapp.” Compare: Bitcoin is a decentralized computer with exactly one dapp. Proposed in 2013, crowd sale in 2014, mainnet launch on 2015-jul-30. Crowd sale: users purchased ether using bitcoin at 1 BTC = 2000 ETH. Total dollar value raised: $18M. (At the time bitcoin was $600.) Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 9 / 36
  • 10. Intro to Ethereum How does Ethereum work? Cryptography is similar to Bitcoin: Digital signatures: Users sign transactions Hash functions: Miners compete via PoW to add transactions to the blockchain Account model. (Compare Bitcoin’s UTXO model.) Each account has an ether balance Externally owned (EO): controlled by a person Contract: controlled by code, storage Contracts run their code each time they receive a message. A user executes code by pushing a transaction containing a message from an EO account she owns to a contract account. Contracts can send messages to other contracts. Users pay for their computations with ether Intended to protect against spam/DoS These payments are called “gas” Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 10 / 36
  • 11. Intro to Ethereum How does gas work? Code is compiled to Ethereum Virtual Machine (EVM) bytecode Each EVM instruction has a price in gas units The gas–ether price floats freely 15-second block time + per-block gas limit = maximum 15 transactions/second Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 11 / 36
  • 12. What can be done with Ethereum-like platforms? Custom tokens Even more cryptocurrencies! The ERC20 token standard It is easy to write an Ethereum contract that implements a new cryptocurrency There is an Ethereum dapp standard called ERC20 Analogy: Abstract class, interface in object-oriented programming Contracts that conform to ERC20 can plug into a whole ecosystem of apps, dapps. “A total of 223,123 Token Contracts found” as of 2019-nov-05. [etherscan.io] 16 of the top 20 all-time highest-funded crowdfunding projects were executed on Ethereum. Many of these are ERC20 tokens. [Wikipedia] Several of the 20 biggest cryptocurrencies are ERC20 tokens [coinmarketcap.com] [etherscan.io] Maker DAI BAT Augur 0x Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 12 / 36
  • 13. What can be done with Ethereum-like platforms? Digital collectibles Digital collectibles! The ERC721 non-fungible token standard Non-fungible: unique, non-divisible tokens Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 13 / 36
  • 14. What can be done with Ethereum-like platforms? Digital collectibles ERC721 Example: Cryptokitties Breed collectible kitty images on Ethereum [cryptokitties.co] Buy, sell unique cryptokitties [Kitty Sales] Several kitties have sold for $100k+ Total kitty sales to date is $27M+ Cryptokitties transactions bogged down the entire Ethereum network in December 2017 [BBC News] Ethereum-wide gas price increased by 10x or more 10-20% of all Ethereum transactions were for Cryptokitties Pending transaction pool grew by 6x Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 14 / 36
  • 15. What can be done with Ethereum-like platforms? Digital collectibles ERC721 Example: Gods Unchained Collectible digital card game. Buy, sell cards on Ethereum. [godsunchained.com] No one can alter, confiscate your cards. Compare: Blizzard nerfs Hearthstone cards Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 15 / 36
  • 16. What can be done with Ethereum-like platforms? Digital collectibles ERC721 Example: Ethereum Name Service (ENS) Map human-readable names (‘alice.eth’) to machine-readable identifiers IP address ‘192.168.0.1’, Ethereum public key ‘0xC48E11afA115DB88A8fb3EF5F4ed7c8219020871...’ Tor .onion address 3g2upl4pq6kufc4m.onion anything you want! Names can be bought, sold like any other ERC721 token Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 16 / 36
  • 17. What can be done with Ethereum-like platforms? Digital collectibles Holy grail: Decentralized DNS, PKI Domain Name System (DNS), Public-key Infrastructure (PKI) are critical worldwide systems In principle: decentralization promises greatness Can’t be censored Permissionless worldwide access Reduced risk of monopoly rents Arguably more secure than traditional DNS, PKI solutions In practice: decentralized governance is tricky Example: Who authorizes new top-level domains (.eth, .com, ...)? How to protect against name-squatting, trademark violations? Browser support for ENS: Natively in Opera, Brave Via browser extension (Metamask!) in major browsers Chrome, Firefox Metamask in a Tor browser automatically resolves .onion addresses (e.g. duckduckgotor.eth −→ 3g2upl4pq6kufc4m.onion) Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 17 / 36
  • 18. What can be done with Ethereum-like platforms? Stable assets The need for stable assets Bitcon, ether, etc are highly volatile assets; their supplies are highly inelastic More like crypto-gold than crypto-currency! Normal people do not wish to hold volatile assets There is demand for a cryptocurrency with stable value (e.g. relative to USD) Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 18 / 36
  • 19. What can be done with Ethereum-like platforms? Stable assets Stable asset: Tether Controversial, centralized token backed by privately-held reserves of USD Live in 2014 as a Bitcoin overlay, now avaiable as an ERC20 token on Ethereum Controlled and promoted by Bitfinex—a large cryptocurrency exchange company A full GAAP audit of reserves was promised but never delivered. Tether has a strained relationship with accounting firms. Accusations that Binance used Tether to manipulate the price of bitcoin. Current price: ∼$1, current supply: >$4 billion Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 19 / 36
  • 20. What can be done with Ethereum-like platforms? Stable assets Stable asset: DAI Mostly-decentralized ERC20 token on Ethereum pegged to USD Backed by (volatile) ERC20 tokens held in reserve in an Ethereum contract Over-collateralized to protect against a decline in reserve value Relies on an “oracle” for the current USD value of its collateral Supply of DAI, reserves is automatically adjusted to maintain the USD peg Complicated governance Launched in 2017; current price: ∼$1; current supply: >$100 million A fascinating experiment, interesting economics questions: What is the true value of an “over-collateralized” asset? Peg could be (temporarily?) broken by a sudden, large drop in the USD value of ether Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 20 / 36
  • 21. What can be done with Ethereum-like platforms? Oracles Contract for difference: a simple but powerful example Suppose: Alice is a farmer who wishes to hedge against the lack of rainfall during the growing season, Bob is a speculator 1 Alice, Bob each contribute some cyrptocurrency into a contract 2 At the end of the growing season, the contract pays to Alice inverseley based on rainfall, the rest to Bob. Replace “rainfall” with “USD price of ether” or anything you want! Far-reaching applications: insurance against disaster, stablecoins, financial derivatives, prediction markets, gambling, ... The big question: How to get accurate rainfall data into Ethereum? A major open problem: the oracle problem Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 21 / 36
  • 22. What can be done with Ethereum-like platforms? Smart property Tokenization of real-world assets (“smart property”) Let’s fantasize for a moment... Create tokens that represent ownership of: equities, works of art, vehicles, real estate, . . . Ownership can be transferred instantly, permissionlessly around the world Imagine: Anyone in Karachi can own shares of Apple, receive dividends Imagine: Buy, sell a house without lawyers or archaic government records Reality check: governments won’t allow it in the foreseeable future Reality check: what if my private keys are lost, stolen? Smart property + smart contracts Imagine: Car loan on Ethereum. If I miss a payment on my car loan then ownership of the car automatically transfers to my creditor. Ethereum-aware real assets? Only the owner of a car’s token can open the door, start the car. Science fiction: “self-owning” driverless cars have their own currency balance, pay for their own maintenance from transit revenue Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 22 / 36
  • 23. Privacy Most blockchains are not private The ultimate surveillance dystopia In Bitcoin, Ethereum, etc all transactions are publicly visible If blockchain takes over the world then: Every cup of coffee, rideshare trip, hand of poker, drug prescription, pay cheque, WikiLeaks donation, ... is available for all the world to see For business: supply chain, payroll, ... all viewable by competitors “Bitcoin is Twitter for your bank account”, “Bitcoin is a tracking cookie in real life” –Ian Miers Bold claim: Blockchain cannot take over the world without better privacy Everyone is watching you Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 23 / 36
  • 24. Privacy Most blockchains are not private Currency, fungibility depend on privacy Society might not accept tokens that have passed through unpopular hands eg. Silk Road, Pirate Bay, political dissidents, sanctions violators, ... Not all tokens are equal −→ fungibility is lost −→ not a currency Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 24 / 36
  • 25. Privacy Zero-knowledge proofs Zero-knowledge proofs of knowledge Given. 1 A function f (·) described, say, by a boolean circuit. (e.g. SHA-256.) 2 An output y. (e.g. A 32-byte output of SHA-256.) Goal. Prove that I know an input x with y = f (x) without revealing anything about x. x (complicated proof) −−−−−−−−−−−−−−−−→ y Yes, I believe you know a preimage of y! Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 25 / 36
  • 26. Privacy Zero-knowledge proofs Anonymous currency: Zcash Designed in 2014 by academic cryptographers [eprint 2014/349] Fork of Bitcoin with zero-knowledge proofs; independent blockchain Deployed in 2016, current value of tokens: >$287 million Implements the Groth16 proposal for a cryptographic primitive called zk-snark Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 26 / 36
  • 27. Privacy Groth16 The Groth16 zk-snark SNARK: Succinct Non-interactive ARgument of Knowledge Scary maths! Quadratic arithmetic programs, elliptic curve pairings Proof size is independent of the circuit. Wow! 288 bytes for any circuit Verification is fast: <10ms for the Zcash circuit Proof creation time is (nearly) acceptable: 7 seconds, 40MB RAM for the Zcash circuit Groth16 is by far the most practical zk-snark Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 27 / 36
  • 28. Privacy Other zero-knowledge protocols A bewildering array of zero-knowledge protocols zk-snark is a very active area of academic research Snark properties: Universal setup—run setup once for a given circuit size s, use it for all circuits with size < s. trustless setup—no need to trust a ceremony Small proofs: logarithmic or even constant size Fast verification: logarithmic vs. sub-linear vs. linear time Fast prover: linear vs. n log n vs. worse time Quantum-safe vs. based on discrete log Recent proposed schemes: GGPR13/Groth16, Pinocchio, Groth-Sahai, Sonic, Plonk, BulletProofs, Hyrax, Ligero, Spartan, Aurora, SuperSonic, Stark, . . . Curated list of zero-knowledge resources: https://zkp.science/ Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 28 / 36
  • 29. Privacy Private smart contracts Private smart contracts? Recall: Bitcoin = decentralized gold; Ethereum = decentralized computer If Bitcoin is Twitter for your bank account then Ethereum is Twitter for everything you do on a computer Recall: Zcash = decentralized private gold Q. What is the decentralized private computer? A. We don’t have one yet. On the drawing board: Zexe. “Enabling Decentralized Private Computation.” [eprint 2018/962] Aztec. “The privacy engine on Ethereum.” [link] Others... Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 29 / 36
  • 30. Privacy Speculation Fantasizing about our private future Crazy ideas: Supply chain Don’t give away your data, sell it Dark pool financial markets Smart metering Income tax Public accountability of secret law (?!) [eprint 2018/664] Snark the whole blockchain Credit score Private health records (Mis-diagnosis resiliency!) Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 30 / 36
  • 31. The future Ethereum 2.0 Goals. Reduce/eliminate PoW, higher transaction throughput, reduce load on individual nodes, . . . Plan: [link to articles] Phase 0: Beacon chain. New cryptography! Multi-signatures Phase 1: Shard chains. 1024 blockchains! Phase 2: Execution layer. Still under design. Different execution environments (WASM? zero-knowledge?) Multi-signatures: [Forum post], [eprint 2018/483] Given. Many signatures σ1, . . . , σn under many public keys pk1, . . . , pkn for a message m Aggregate. Compute aggregated signature, public key σ, pk. Verify. Verifier is convinced that all signatures σ1, . . . , σn are correct by checking only Verify(pk, σ, m). Benefit. A much lighter computational load on Ethereum nodes Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 31 / 36
  • 32. The future Ethereum 2.0 [link] Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 32 / 36
  • 33. The future New platforms: alternatives to Ethereum There are several well-funded, well-staffed initiatives for independent platforms Algorand, Celo, Dfinity, Polkadot, Tendermint/Cosmos, Tezos, . . . Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 33 / 36
  • 34. Challenges Open problems in decentralized finance and blockchain 1 Reduce / eliminate proof-of-work New platforms aim to replace PoW with more sophisticated consensus algorithms 2 Scalability Currently, every node must process every transaction in the world! 3 Data availability Any node that does not process every transaction in the world must be able to find data if needed Hard problem! It is impossible to attribute fault in a data withholding attack 4 Decentralized, trustworthy oracles A hard problem with no good answer Proposals: [Astrea], [Augur], [DAI], [UMA] Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 34 / 36
  • 35. Challenges Open problems in decentralized finance and blockchain 5 Stablecoins Each existing solution has its own problems Crazy idea: the anti-bitcoin: perfectly elastic supply via PoW. [Meter.io] [Celerium] 6 Bug-resistant smart contracts The DAO is a high-profile example of pitfalls of bug-prone smart contract platforms. Solidity is JavaScript inspired—boo! Tezos uses OCaml, a functional language with provable guarantees 7 Identity, personhood we could do so much more if we could protect against sock-puppet attacks [ethereum wiki: problems] Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 35 / 36
  • 36. Developing countries Potential benefits of DeFi for developing countries Sound money. (Or, at least, sounder money.) In places with high inflation, cryptocurrency is less volatile than the local currency Access to USD-stable assets with no need for a US banking license Send money across borders: inexpensive remittances, avoid capital controls Financial services for the unbanked Can’t get a loan to start your business? Get a DeFi loan collateralized with smart property! Can’t get insurance against poor rainfall? Participate in a prediction market! Documentation of property rights If someone steals your home, at least you can now provide irrefutable cryptographic proof of theft! DeFi is not a panacea; it may never solve these problems. But I see no reason not to try. Gus Gutoski Whirlwind tour of decentralized finance and blockchain November 16, 2019 36 / 36