SlideShare a Scribd company logo
1 of 23
Ethereum
Campbell R. Harvey*
Duke University and NBER
Innovation and Cryptoventures
1
*Prepared with the help of Joey Santoro, Ashwin Ramachandran and Brent Xu
2
Campbell R. Harvey 2018
• Ethereum Basics
• The Ecosystem
• dApp deployment and connections
• Appendix
Overview
Campbell R. Harvey 2019 3
History of Ethereum
4
• Russian-Canadian Vitalik Buterin co-
founded Ethereum at 19 years old
• Whitepaper in 2013
• Genesis block July 2015
• Blockchain
o Accounts
o Wallets
o Transactions
• Smart Contracts
• Tokens
• Decentralized Applications
Important Concepts
5
Campbell R. Harvey 2019
Ether Denominations
6
• Wei - lowest denomination
 Named after Wei Dai - author of b-money paper (1998), many
core concepts used in BTC implementation
 1/1,000,000,000,000,000,000 (quintillion)
• Szabo - next denomination
• Named after Nick Szabo
- author of Bit-Gold
• Finney – 2nd highest denomination
• Named after Hal Finney
- received first Tx from Nakamoto
Campbell R. Harvey 2019
http://www.weidai.com/bmoney.txt
Blockchain
7
Blockchain as a Fully Distributed Database
• Stores data
• Transactions/messages alter the data
Ethereum
• The “data” can be any digital asset/token
• Ethereum uses smart contracts to dramatically expand transaction
capabilities
Campbell R. Harvey 2019
• All accounts have equal access to interacting with
Ethereum
• External Owned Accounts (EOA)
▪ Human account
▪ Public/private keys used to send/validate transactions
• Contract Accounts
▪ Completely run by code once deployed
▪ Can hold and transfer ETH or other tokens
▪ Unchangeable outside of what is coded
Accounts
8
Campbell R. Harvey 2019
• A set of one or more external accounts
• Used to store/transfer ether
▪ Can also hold other tokens
• Manages Public/Private keys for you
▪ Usually opened with a password
▪ Provides back up phrase for keys
• X of Y Multisig wallets (e.g., need 2 of 3 to sign off)
Wallets
9
Campbell R. Harvey 2019
• Only way to update Ethereum State
▪ Transfer ETH
▪ Change contract data
• All transactions begin from an External Account
▪ Contracts do not run in background, must be called by a
transaction from an EOA or other contract
Transactions
10
Campbell R. Harvey 2019
• Programatically enforced state updates
▪ Can add any functionality you want
• Can facilitate access to and distribution of funds based
on specified conditions
• Can create, transfer, and alter arbitrary digital assets
• Interact with other contracts to create robust
interoperable applications
• Base layer for the Internet of Value
Smart Contracts
11
Campbell R. Harvey 2019
• In the context of a blockchain
• Digital assets which live on a blockchain not its own
• Can have utility in context of a dApp, represent a
physical good, or be a digital collectible
• ERC-20: Fungible Ethereum Token spec
▪ All tokens interchangeable (like money)
• ERC-721: Non-Fungible Ethereum Token spec
▪ Each token unique (like collectibles or title deeds)
Token
12
Campbell R. Harvey 2019
• Goal is totally distributed application
▪ No point of failure
▪ No censorship
▪ Totally transparent
• App Logic via smart contract
• App data via decentralized storage like IPFS or Swarm
• Frontend via IPFS or Swarm as well
• Name resolution via ENS (Ethereum Name Service)
• Messaging via Whisper (decentralized SMS - or
message calls between applications)
Decentralized Applications (dApps)
13
Campbell R. Harvey 2019
14
Ethereum is a smart contract enabled blockchain
which can act as the base layer for an interoperable
internet of value and decentralized applications
Big Idea
• Many different applications are being built on
Ethereum
• Some aim to decentralize/tokenize things we
already do:
▪ Gambling/Games, file storage, Dharma, dYdX, 0x
• Others completely new crypto-native applications:
▪ MakerDAO, Augur, Decentraland
The Ecosystem
15
Campbell R. Harvey 2019
Under the Hood
Blocks faster than BTC and reward is different
• Every 15 seconds
• 3 ETH main reward - reduced to 2 with Constantinople
• Different mining algorithm Keccak 256
• Same ECDSA used to generate public keys
• Blocks keep track of balances – not “unspent transaction
outputs” like BTC
• Will transition from Proof of Work to Proof of Stake with
Casper protocol
Campbell R. Harvey 2019 16
Under the Hood
Campbell R. Harvey 2019 17
• All blocks visible like BTC
• However, blocks have a
different structure than
BTC
https://etherscan.io/
• Halting problem (infinite loop) – one reason for Gas
• Problem: Cannot tell whether or not a program will run
infinitely from compiled code
• Solution: charge fee per computational step to limit infinite
loops and stop flawed code from executing
• Every transaction needs to specify an estimate of the
amount of gas it will spend
• Essentially a measure of how much one is willing to
spend on a transaction, even if buggy
Gas
18
Campbell R. Harvey 2019
19
• Gas Price: current market price of a unit of Gas (in Wei)
▪ Check gas price here: https://ethgasstation.info/
▪ Is always set before a transaction by user
• Gas Limit: maximum amount of Gas user is willing to
spend
• Helps to regulate load on network
• Gas Cost (used when sending transactions) is calculated
by gasLimit*gasPrice.
▪ All blocks have a Gas Limit (maximum Gas each block can use)
Campbell R. Harvey 2019
Gas Cost
20
• Gas Price: current market price of a unit of Gas (in gwei)
 Check gas price here: https://ethgasstation.info/
 Is always set before a transaction by user
Campbell R. Harvey 2019
Gas Cost
21
Ethereum in the process of moving to Proof of Stake
• This approach does not require large expenditures on computing
and energy
• Miners are now “validators” and post a deposit in an escrow
account
• The more escrow you post, the higher the probability you will be
chosen to nominate the next block
• If you nominate a block with invalid transactions, you lose your
escrow
Campbell R. Harvey 2019
PoW vs. PoS
22
Ethereum in the process of moving to Proof of Stake
• One issue with this approach is that those that have the most
ethereum will be able to get even more
• This leads to centralization eventually
• On the other hand, it reduces the chance of a 51% attack and
allows for near instant transaction approvals
• The protocol is called Casper and this will be a hard fork
Campbell R. Harvey 2019
PoW vs. PoS
https://blockonomi.com/ethereum-casper/
• Highly recommended intro
• https://medium.com/@preethikasireddy/
how-does-ethereum-work-anyway-
22d1df506369
• I draw some graphics from the above
article in the presentation
Extra Material
Campbell R. Harvey 2019 23

More Related Content

Similar to Ethereum_New.pptx

Bitcoin and the Rise of the Block Chains
Bitcoin and the Rise of the Block ChainsBitcoin and the Rise of the Block Chains
Bitcoin and the Rise of the Block ChainsDallas Kennedy
 
Ethereum in a nutshell
Ethereum in a nutshellEthereum in a nutshell
Ethereum in a nutshellDaniel Chan
 
Idea To IPO Blockchain Slides
Idea To IPO Blockchain SlidesIdea To IPO Blockchain Slides
Idea To IPO Blockchain SlidesRoger Royse
 
What is bitcoin?
What is bitcoin?What is bitcoin?
What is bitcoin?Suraj Bora
 
Ethereum Blockchain with Smart contract and ERC20
Ethereum Blockchain with Smart contract and ERC20Ethereum Blockchain with Smart contract and ERC20
Ethereum Blockchain with Smart contract and ERC20Truong Nguyen
 
Block chain chronicles
Block chain chroniclesBlock chain chronicles
Block chain chroniclesNoah Chen
 
Bitcoin and the future of cryptocurrency
Bitcoin and the future of cryptocurrencyBitcoin and the future of cryptocurrency
Bitcoin and the future of cryptocurrencyBen Hall
 
Ethereum Classic Shanghai: Products and Services
Ethereum Classic Shanghai: Products and ServicesEthereum Classic Shanghai: Products and Services
Ethereum Classic Shanghai: Products and ServicesAvtar Sehra
 
Bitcoin Decision Point - April 2017
Bitcoin Decision Point - April 2017Bitcoin Decision Point - April 2017
Bitcoin Decision Point - April 2017Jeff Garzik
 
Blockchain, AI and Machine Learning
Blockchain, AI and Machine LearningBlockchain, AI and Machine Learning
Blockchain, AI and Machine LearningTao Wang
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & EthereumBlockchainHub Graz
 
bcPro Introductory Offer
bcPro Introductory OfferbcPro Introductory Offer
bcPro Introductory OfferNghiaCao8
 
Blockchain Technology Powerpoint
Blockchain Technology PowerpointBlockchain Technology Powerpoint
Blockchain Technology PowerpointAndrew Mackey
 
Withum cryptocurrency 101
Withum   cryptocurrency 101Withum   cryptocurrency 101
Withum cryptocurrency 101Withum
 
A Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval CaprazA Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval CaprazSeval Çapraz
 
Understanding blockchains
Understanding blockchainsUnderstanding blockchains
Understanding blockchainsLen Bass
 
Blockchain & Cryptocurrencies Intro - July 2017
Blockchain & Cryptocurrencies Intro - July 2017Blockchain & Cryptocurrencies Intro - July 2017
Blockchain & Cryptocurrencies Intro - July 2017🔗Audrey Chaing
 

Similar to Ethereum_New.pptx (20)

Bitcoin and the Rise of the Block Chains
Bitcoin and the Rise of the Block ChainsBitcoin and the Rise of the Block Chains
Bitcoin and the Rise of the Block Chains
 
Ethereum in a nutshell
Ethereum in a nutshellEthereum in a nutshell
Ethereum in a nutshell
 
Idea To IPO Blockchain Slides
Idea To IPO Blockchain SlidesIdea To IPO Blockchain Slides
Idea To IPO Blockchain Slides
 
Blockchain
BlockchainBlockchain
Blockchain
 
What is bitcoin?
What is bitcoin?What is bitcoin?
What is bitcoin?
 
Ethereum Blockchain with Smart contract and ERC20
Ethereum Blockchain with Smart contract and ERC20Ethereum Blockchain with Smart contract and ERC20
Ethereum Blockchain with Smart contract and ERC20
 
Block chain chronicles
Block chain chroniclesBlock chain chronicles
Block chain chronicles
 
Blockchain
BlockchainBlockchain
Blockchain
 
Bitcoin and the future of cryptocurrency
Bitcoin and the future of cryptocurrencyBitcoin and the future of cryptocurrency
Bitcoin and the future of cryptocurrency
 
BITCOIN EXPLAINED
BITCOIN EXPLAINEDBITCOIN EXPLAINED
BITCOIN EXPLAINED
 
Ethereum Classic Shanghai: Products and Services
Ethereum Classic Shanghai: Products and ServicesEthereum Classic Shanghai: Products and Services
Ethereum Classic Shanghai: Products and Services
 
Bitcoin Decision Point - April 2017
Bitcoin Decision Point - April 2017Bitcoin Decision Point - April 2017
Bitcoin Decision Point - April 2017
 
Blockchain, AI and Machine Learning
Blockchain, AI and Machine LearningBlockchain, AI and Machine Learning
Blockchain, AI and Machine Learning
 
BCHGraz - Meetup #8 - Intro & Ethereum
 BCHGraz - Meetup #8 - Intro & Ethereum BCHGraz - Meetup #8 - Intro & Ethereum
BCHGraz - Meetup #8 - Intro & Ethereum
 
bcPro Introductory Offer
bcPro Introductory OfferbcPro Introductory Offer
bcPro Introductory Offer
 
Blockchain Technology Powerpoint
Blockchain Technology PowerpointBlockchain Technology Powerpoint
Blockchain Technology Powerpoint
 
Withum cryptocurrency 101
Withum   cryptocurrency 101Withum   cryptocurrency 101
Withum cryptocurrency 101
 
A Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval CaprazA Quick Start To Blockchain by Seval Capraz
A Quick Start To Blockchain by Seval Capraz
 
Understanding blockchains
Understanding blockchainsUnderstanding blockchains
Understanding blockchains
 
Blockchain & Cryptocurrencies Intro - July 2017
Blockchain & Cryptocurrencies Intro - July 2017Blockchain & Cryptocurrencies Intro - July 2017
Blockchain & Cryptocurrencies Intro - July 2017
 

Recently uploaded

Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGDSC PJATK
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMKumar Satyam
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingScyllaDB
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxFIDO Alliance
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfSrushith Repakula
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform EngineeringMarcus Vechiato
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireExakis Nelite
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityVictorSzoltysek
 
Vector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptxVector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptxjbellis
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)Samir Dash
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...ScyllaDB
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data SciencePaolo Missier
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptxFIDO Alliance
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Skynet Technologies
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctBrainSell Technologies
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightSafe Software
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...marcuskenyatta275
 
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdfMuhammad Subhan
 

Recently uploaded (20)

Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Vector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptxVector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptx
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
 

Ethereum_New.pptx

  • 1. Ethereum Campbell R. Harvey* Duke University and NBER Innovation and Cryptoventures 1 *Prepared with the help of Joey Santoro, Ashwin Ramachandran and Brent Xu
  • 3. • Ethereum Basics • The Ecosystem • dApp deployment and connections • Appendix Overview Campbell R. Harvey 2019 3
  • 4. History of Ethereum 4 • Russian-Canadian Vitalik Buterin co- founded Ethereum at 19 years old • Whitepaper in 2013 • Genesis block July 2015
  • 5. • Blockchain o Accounts o Wallets o Transactions • Smart Contracts • Tokens • Decentralized Applications Important Concepts 5 Campbell R. Harvey 2019
  • 6. Ether Denominations 6 • Wei - lowest denomination  Named after Wei Dai - author of b-money paper (1998), many core concepts used in BTC implementation  1/1,000,000,000,000,000,000 (quintillion) • Szabo - next denomination • Named after Nick Szabo - author of Bit-Gold • Finney – 2nd highest denomination • Named after Hal Finney - received first Tx from Nakamoto Campbell R. Harvey 2019 http://www.weidai.com/bmoney.txt
  • 7. Blockchain 7 Blockchain as a Fully Distributed Database • Stores data • Transactions/messages alter the data Ethereum • The “data” can be any digital asset/token • Ethereum uses smart contracts to dramatically expand transaction capabilities Campbell R. Harvey 2019
  • 8. • All accounts have equal access to interacting with Ethereum • External Owned Accounts (EOA) ▪ Human account ▪ Public/private keys used to send/validate transactions • Contract Accounts ▪ Completely run by code once deployed ▪ Can hold and transfer ETH or other tokens ▪ Unchangeable outside of what is coded Accounts 8 Campbell R. Harvey 2019
  • 9. • A set of one or more external accounts • Used to store/transfer ether ▪ Can also hold other tokens • Manages Public/Private keys for you ▪ Usually opened with a password ▪ Provides back up phrase for keys • X of Y Multisig wallets (e.g., need 2 of 3 to sign off) Wallets 9 Campbell R. Harvey 2019
  • 10. • Only way to update Ethereum State ▪ Transfer ETH ▪ Change contract data • All transactions begin from an External Account ▪ Contracts do not run in background, must be called by a transaction from an EOA or other contract Transactions 10 Campbell R. Harvey 2019
  • 11. • Programatically enforced state updates ▪ Can add any functionality you want • Can facilitate access to and distribution of funds based on specified conditions • Can create, transfer, and alter arbitrary digital assets • Interact with other contracts to create robust interoperable applications • Base layer for the Internet of Value Smart Contracts 11 Campbell R. Harvey 2019
  • 12. • In the context of a blockchain • Digital assets which live on a blockchain not its own • Can have utility in context of a dApp, represent a physical good, or be a digital collectible • ERC-20: Fungible Ethereum Token spec ▪ All tokens interchangeable (like money) • ERC-721: Non-Fungible Ethereum Token spec ▪ Each token unique (like collectibles or title deeds) Token 12 Campbell R. Harvey 2019
  • 13. • Goal is totally distributed application ▪ No point of failure ▪ No censorship ▪ Totally transparent • App Logic via smart contract • App data via decentralized storage like IPFS or Swarm • Frontend via IPFS or Swarm as well • Name resolution via ENS (Ethereum Name Service) • Messaging via Whisper (decentralized SMS - or message calls between applications) Decentralized Applications (dApps) 13 Campbell R. Harvey 2019
  • 14. 14 Ethereum is a smart contract enabled blockchain which can act as the base layer for an interoperable internet of value and decentralized applications Big Idea
  • 15. • Many different applications are being built on Ethereum • Some aim to decentralize/tokenize things we already do: ▪ Gambling/Games, file storage, Dharma, dYdX, 0x • Others completely new crypto-native applications: ▪ MakerDAO, Augur, Decentraland The Ecosystem 15 Campbell R. Harvey 2019
  • 16. Under the Hood Blocks faster than BTC and reward is different • Every 15 seconds • 3 ETH main reward - reduced to 2 with Constantinople • Different mining algorithm Keccak 256 • Same ECDSA used to generate public keys • Blocks keep track of balances – not “unspent transaction outputs” like BTC • Will transition from Proof of Work to Proof of Stake with Casper protocol Campbell R. Harvey 2019 16
  • 17. Under the Hood Campbell R. Harvey 2019 17 • All blocks visible like BTC • However, blocks have a different structure than BTC https://etherscan.io/
  • 18. • Halting problem (infinite loop) – one reason for Gas • Problem: Cannot tell whether or not a program will run infinitely from compiled code • Solution: charge fee per computational step to limit infinite loops and stop flawed code from executing • Every transaction needs to specify an estimate of the amount of gas it will spend • Essentially a measure of how much one is willing to spend on a transaction, even if buggy Gas 18 Campbell R. Harvey 2019
  • 19. 19 • Gas Price: current market price of a unit of Gas (in Wei) ▪ Check gas price here: https://ethgasstation.info/ ▪ Is always set before a transaction by user • Gas Limit: maximum amount of Gas user is willing to spend • Helps to regulate load on network • Gas Cost (used when sending transactions) is calculated by gasLimit*gasPrice. ▪ All blocks have a Gas Limit (maximum Gas each block can use) Campbell R. Harvey 2019 Gas Cost
  • 20. 20 • Gas Price: current market price of a unit of Gas (in gwei)  Check gas price here: https://ethgasstation.info/  Is always set before a transaction by user Campbell R. Harvey 2019 Gas Cost
  • 21. 21 Ethereum in the process of moving to Proof of Stake • This approach does not require large expenditures on computing and energy • Miners are now “validators” and post a deposit in an escrow account • The more escrow you post, the higher the probability you will be chosen to nominate the next block • If you nominate a block with invalid transactions, you lose your escrow Campbell R. Harvey 2019 PoW vs. PoS
  • 22. 22 Ethereum in the process of moving to Proof of Stake • One issue with this approach is that those that have the most ethereum will be able to get even more • This leads to centralization eventually • On the other hand, it reduces the chance of a 51% attack and allows for near instant transaction approvals • The protocol is called Casper and this will be a hard fork Campbell R. Harvey 2019 PoW vs. PoS https://blockonomi.com/ethereum-casper/
  • 23. • Highly recommended intro • https://medium.com/@preethikasireddy/ how-does-ethereum-work-anyway- 22d1df506369 • I draw some graphics from the above article in the presentation Extra Material Campbell R. Harvey 2019 23