SlideShare a Scribd company logo
INTRODUCTION TO BLOCKCHAIN
2
Agenda
1. What is a
Blockchain?
2. Introduction
to Ethereum
3
1. WHAT IS A BLOCKCHAIN?
4
FIRST, WHY
DO WE CARE ABOUT
BLOCKCHAINS?
A blockchain allows for trustless transactions
between multiple parties.
Or, more importantly, it allows transactions
without trust of a third party intermediary!
5
BLOCKCHAIN =
DISTRIBUTED LEDGER
+ CONSENSUS
6
BLOCKCHAIN =
DISTRIBUTED LEDGER
+ CONSENSUS
A list of transactions between accounts (a ledger)
are stored on distributed “nodes”. New
transactions are periodically added into a block.
Nodes use an agreed upon protocol to reach
consensus on when a new block is appended to
the chain of previous blocks.
7
A TRANSACTION THAT OCCURS BETWEEN
ACCOUNTS
Transaction #399
Account A Account B
E.g. Send 10 tokens
An example transaction could be:
Account A will send 10 tokens to Account B
8
A LEDGER IS A LIST OF TRANSACTIONS
(GROUPED INTO BLOCKS)
LEDGER
Block #100
Last Block: #99
Transaction #399
Transaction #400
Transaction #401
Block #97
Block #98
Block #99
9
BLOCKS ARE CHAINED TOGETHER
LEDGER
Block #100
Last Block: #99
Transaction #399
Transaction #400
Block #97 Block #98 Block #99
The ledger is a chain of blocks! Each block is
created with a pointer to the previous block
creating a blockchain!
The ledger is a chain of blocks! Each block is
created with a pointer to the previous block
creating a blockchain!
10
THE LEDGER IS COPIED AND
DISTRIBUTED AMONG NODES
�
�
�
� �
11
EACH NODE HAS A COPY OF THE LEDGER AND AT
LEAST ONE OF THEM WILL CREATE THE NEXT BLOCK!
�
�
� �
�
11
12
EXAMPLE
CONSENSUS
PROTOCOL:
PROOF OF
WORK
Different methods or protocols exist for
distributed nodes to reach consensus
13
NODES ATTEMPTING TO CREATE NEW
BLOCKS ARE USUALLY CALLED “MINERS”
�
�
�
� �The first Miner to solve
a hard math problem
creates the next block
and is rewarded
14
E.g. Bitcoin
Miners currently
receive 12.5 BTC
plus all included
transaction fees
New block:
Every ~10 minutes
THE MAJORITY OF PoW BLOCKCHAINS
INCENTIVIZE MINERS WITH REWARDS
E.g. Ethereum
Miners currently
receive 5 ETH plus
all included gas
fees (more on this
shortly)
New block:
Every ~15 seconds
15
A BRIEF HISTORY OF
BLOCKCHAINS
▸ 2008: Bitcoin and blockchain idea gifted to
world by “Satoshi Nakamoto”
▸ 2009: Bitcoin client released (open source)
▸ 2011: Litecoin, first “altcoin,” released (based
on bitcoin source code)
▸ 2014: Ethereum whitepaper
released/crowdsale
▸ 2015: Ethereum “Frontier” launched
16
2.
INTRODUCTION
TO ETHEREUM
17
WHAT IS ETHEREUM?
OPEN SOURCE
Like Bitcoin,
Ethereum is a
public blockchain
no one controls or
owns.
18
WHAT IS ETHEREUM?
OPEN SOURCE
Like Bitcoin,
Ethereum is a
public blockchain
no one controls or
owns.
PROOF OF
WORK
CONSENSUS
The Ethereum
Whitepaper
specifies the PoW
rules and 4+
major clients exist
and run the
“nodes”.
19
WHAT IS ETHEREUM?
OPEN SOURCE
Like Bitcoin,
Ethereum is a
public blockchain
no one controls or
owns.
PROOF OF
WORK
CONSENSUS
The Ethereum
Whitepaper
specifies the PoW
rules and 4+
major clients exist
and run the
“nodes”.
ETHEREUM
VIRTUAL
MACHINE (EVM)
Transactions are
more than just
values, but
“Turing” complete
programs that run
when blocks are
processed by
nodes.
20
ETHEREUM VIRTUAL MACHINE
General Purpose
Supports Bitcoin-
like value
transactions (e.g.
send 10 ETH from
account A to B) or
more complex
applications.
21
ETHEREUM VIRTUAL MACHINE
General Purpose
Supports Bitcoin-
like value
transactions (e.g.
send 10 ETH from
account A to B) or
more complex
applications.
Smart Contracts
Turing complete
languages (e.g.
Solidity) allow the
Ethereum
transactions to be
programmed to do
different
operations.
22
ETHEREUM VIRTUAL MACHINE
General Purpose
Supports Bitcoin-
like value
transactions (e.g.
send 10 ETH from
account A to B) or
more complex
applications.
Smart Contracts
Turing complete
languages (e.g.
Solidity) allow the
Ethereum
transactions to be
programmed to do
different
operations.
Decentralized
Apps (DApps)
GUIs for smart
contracts allow
users to interact
in ways similar to
web 2.0
(HTML/JS/CSS).
23
THINK:
WORLD
COMPUTER
The Ethereum blockchain is the first
“decentralized world computer” to ever
exist!
24
TRANSACTIONS AND CONTRACTS
Two types of Accounts
▸ Externally owned accounts (controlled by
people/keys similar to Bitcoin)
▸ Contract accounts (controlled by smart
contract code)
25
TRANSACTIONS AND CONTRACTS
Transactions can include more than just value
transfer; they can include programming or
bytecode that does things (smart contracts)
Transaction #3512
If (Account A == Member) && (Date >= 4Q):
Dividend = 25% the current value of Contract C:
Transaction:
Contract C Account A
Send Dividend
26
TRANSACTIONS AND CONTRACTS
Submitting transactions and contracts to the
blockchain has an associated “gas” cost paid
in Ether based on the complexity of the
operations.
Transaction #256
If (Account A == Member) && (Date >= 4Q):
Dividend = 50% the current value of Contract C:
Transaction:
Contract C
Send Dividend
IF +70 Gas
AND +30 Gas
EQUAL? +40 Gas
DIVIDE +120 Gas
SEND +20 Gas
TOTAL COST = 280 Gas
27
TRANSACTIONS AND CONTRACTS
LEDGER
Block #26
Last Block: #25
Transaction #256
Transaction #257
Transaction #258
Block #23
Block #24
Block #25
28
TRANSACTIONS AND CONTRACTS
Think of the
Ethereum
Ledger like a
SPREADSHEET
Cells can just have a
value or they can give
the result of a
macro/script.
Trans-
action
Account A Account B Account C
(Contract)
#256 10 10 0
#257 5 5 10
#258 10 5 Dividend(A)
29
THIS IS AN EXAMPLE SMART
CONTRACT WRITTEN IN SOLIDITY
contract MyToken {
/* This creates an array with all balances */
mapping (address => uint256) public balanceOf;
/* Initializes contract with initial supply tokens to the creator of the contract */
function MyToken(
uint256 initialSupply
) {
balanceOf[msg.sender] = initialSupply; // Give the creator all initial tokens
}
/* Send coins */
function transfer(address _to, uint256 _value) {
if (balanceOf[msg.sender] < _value) throw; // Check if the sender has enough
if (balanceOf[_to] + _value < balanceOf[_to]) throw; // Check for overflows
balanceOf[msg.sender] -= _value; // Subtract from the sender
balanceOf[_to] += _value; // Add the same to the recipient
}
}
30
USE CASES FOR DAPPS AND
PROJECTS IN DEVELOPMENT
Decentralized
Exchange
Convert between
crypto-currencies and
tokens
EtherDelta, EtherEx
Prediction Market
Utilize the wisdom of
the crowd to predict
future events
Augur, Gnosis
Distributed
Computing
Enable users to lease
out spare compute
cycles (think: uber for
your computer, dAWS)
Golem
Identity Management
Retain ownership of
your online identity,
metadata, and
relationships.
uPort
Crowd Sale Platform
Create a custom token
for trade, payment,
customer loyalty, etc.
and take it to market.
Ethereum, Firstblood
Digital Asset
Management
Manage, buy, sell
physical objects
cryptographically tied to
digital tokens.
Digix
31
Thank you for your listening
Ad

More Related Content

What's hot (20)

Blockchain, Ethereum and Business Applications
Blockchain, Ethereum and Business ApplicationsBlockchain, Ethereum and Business Applications
Blockchain, Ethereum and Business Applications
Matthias Zimmermann
 
Blockchain Basics
Blockchain BasicsBlockchain Basics
Blockchain Basics
Rohit Kumar
 
Blockchain - Presentacion Betabeers Galicia 10/12/2014
Blockchain - Presentacion Betabeers Galicia 10/12/2014Blockchain - Presentacion Betabeers Galicia 10/12/2014
Blockchain - Presentacion Betabeers Galicia 10/12/2014
WeKCo Coworking
 
Blockchain, cryptography, and consensus
Blockchain, cryptography, and consensusBlockchain, cryptography, and consensus
Blockchain, cryptography, and consensus
ITU
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
ArunimShukla
 
Session 3 introduction blockchain by franco 22 januari
Session 3   introduction blockchain by franco 22 januariSession 3   introduction blockchain by franco 22 januari
Session 3 introduction blockchain by franco 22 januari
Arthur Janse
 
Introduction to blockchain Session @ Tie Pune
Introduction to blockchain Session @ Tie Pune Introduction to blockchain Session @ Tie Pune
Introduction to blockchain Session @ Tie Pune
Uday Kothari
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
AIMDek Technologies
 
How does a blockchain work?
How does a blockchain work?How does a blockchain work?
How does a blockchain work?
Deloitte UK
 
Payment Protocols - Block Chain & Beyond
Payment Protocols - Block Chain & BeyondPayment Protocols - Block Chain & Beyond
Payment Protocols - Block Chain & Beyond
Alexander Kiriakou
 
Bitcoin & Blockchain Basics
Bitcoin & Blockchain BasicsBitcoin & Blockchain Basics
Bitcoin & Blockchain Basics
Crowdsourcing Week
 
Block chain introduction
Block chain introductionBlock chain introduction
Block chain introduction
Nagendra Kumar Y
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
subbul
 
Blockchain-intro (2)
Blockchain-intro (2)Blockchain-intro (2)
Blockchain-intro (2)
Zakir Hoosen
 
Introduction to Blockchain Development
Introduction to Blockchain DevelopmentIntroduction to Blockchain Development
Introduction to Blockchain Development
Lightstreams
 
An Introduction to Blockchain
An Introduction to BlockchainAn Introduction to Blockchain
An Introduction to Blockchain
NexThoughts Technologies
 
The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin
Jérôme Kehrli
 
Blockchain, working [blockchain vs bitcoin] pros and cons
Blockchain, working [blockchain vs bitcoin] pros and consBlockchain, working [blockchain vs bitcoin] pros and cons
Blockchain, working [blockchain vs bitcoin] pros and cons
Jerin Sebastian
 
BLOCKCHAIN
BLOCKCHAINBLOCKCHAIN
BLOCKCHAIN
Nitish sharma
 
Blockchain 101 presentation by fstream.io
Blockchain 101 presentation by fstream.ioBlockchain 101 presentation by fstream.io
Blockchain 101 presentation by fstream.io
Baiju Devani
 
Blockchain, Ethereum and Business Applications
Blockchain, Ethereum and Business ApplicationsBlockchain, Ethereum and Business Applications
Blockchain, Ethereum and Business Applications
Matthias Zimmermann
 
Blockchain Basics
Blockchain BasicsBlockchain Basics
Blockchain Basics
Rohit Kumar
 
Blockchain - Presentacion Betabeers Galicia 10/12/2014
Blockchain - Presentacion Betabeers Galicia 10/12/2014Blockchain - Presentacion Betabeers Galicia 10/12/2014
Blockchain - Presentacion Betabeers Galicia 10/12/2014
WeKCo Coworking
 
Blockchain, cryptography, and consensus
Blockchain, cryptography, and consensusBlockchain, cryptography, and consensus
Blockchain, cryptography, and consensus
ITU
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
ArunimShukla
 
Session 3 introduction blockchain by franco 22 januari
Session 3   introduction blockchain by franco 22 januariSession 3   introduction blockchain by franco 22 januari
Session 3 introduction blockchain by franco 22 januari
Arthur Janse
 
Introduction to blockchain Session @ Tie Pune
Introduction to blockchain Session @ Tie Pune Introduction to blockchain Session @ Tie Pune
Introduction to blockchain Session @ Tie Pune
Uday Kothari
 
How does a blockchain work?
How does a blockchain work?How does a blockchain work?
How does a blockchain work?
Deloitte UK
 
Payment Protocols - Block Chain & Beyond
Payment Protocols - Block Chain & BeyondPayment Protocols - Block Chain & Beyond
Payment Protocols - Block Chain & Beyond
Alexander Kiriakou
 
Introduction to Blockchain
Introduction to BlockchainIntroduction to Blockchain
Introduction to Blockchain
subbul
 
Blockchain-intro (2)
Blockchain-intro (2)Blockchain-intro (2)
Blockchain-intro (2)
Zakir Hoosen
 
Introduction to Blockchain Development
Introduction to Blockchain DevelopmentIntroduction to Blockchain Development
Introduction to Blockchain Development
Lightstreams
 
The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin The Blockchain - The Technology behind Bitcoin
The Blockchain - The Technology behind Bitcoin
Jérôme Kehrli
 
Blockchain, working [blockchain vs bitcoin] pros and cons
Blockchain, working [blockchain vs bitcoin] pros and consBlockchain, working [blockchain vs bitcoin] pros and cons
Blockchain, working [blockchain vs bitcoin] pros and cons
Jerin Sebastian
 
Blockchain 101 presentation by fstream.io
Blockchain 101 presentation by fstream.ioBlockchain 101 presentation by fstream.io
Blockchain 101 presentation by fstream.io
Baiju Devani
 

Similar to Grokking TechTalk #17: Introduction to blockchain (20)

Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Codemotion
 
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Codemotion
 
BLOCKCHAIN PPT.pptx
BLOCKCHAIN PPT.pptxBLOCKCHAIN PPT.pptx
BLOCKCHAIN PPT.pptx
SohanaAmreen
 
Banking on blockchains
Banking on blockchainsBanking on blockchains
Banking on blockchains
Ruben Tan
 
Ethereum Block Chain
Ethereum Block ChainEthereum Block Chain
Ethereum Block Chain
SanatPandoh
 
Building Apps with Ethereum Smart Contract
Building Apps with Ethereum Smart ContractBuilding Apps with Ethereum Smart Contract
Building Apps with Ethereum Smart Contract
Vaideeswaran Sethuraman
 
Paradigm shift: from the bitcoin Blockchain to Networked Computing
Paradigm shift: from the bitcoin Blockchain to Networked ComputingParadigm shift: from the bitcoin Blockchain to Networked Computing
Paradigm shift: from the bitcoin Blockchain to Networked Computing
kumar641
 
Bitcoin and Blockchain
Bitcoin and BlockchainBitcoin and Blockchain
Bitcoin and Blockchain
Chen Wu
 
The Bitcoin Rocketship @ BTC Miami 2015
The Bitcoin Rocketship @ BTC Miami 2015The Bitcoin Rocketship @ BTC Miami 2015
The Bitcoin Rocketship @ BTC Miami 2015
Jeff Garzik
 
Introduction to Blockchain and Ethereum
Introduction to Blockchain and EthereumIntroduction to Blockchain and Ethereum
Introduction to Blockchain and Ethereum
Georgios Konstantopoulos
 
Blockchain, smart contracts - introduction
Blockchain, smart contracts - introductionBlockchain, smart contracts - introduction
Blockchain, smart contracts - introduction
Lukasz Jarmulowicz
 
Intro to blockchain
Intro to blockchainIntro to blockchain
Intro to blockchain
Ringaile Valiaugaite
 
Public Blockchain Presentation1 Nodes remain anonymous through cryptographic ...
Public Blockchain Presentation1 Nodes remain anonymous through cryptographic ...Public Blockchain Presentation1 Nodes remain anonymous through cryptographic ...
Public Blockchain Presentation1 Nodes remain anonymous through cryptographic ...
archana388558
 
An Introduction to Blockchains
An Introduction to BlockchainsAn Introduction to Blockchains
An Introduction to Blockchains
Dr. Nikolaus Lipusch
 
Blockchain an introduction_n_li
Blockchain an introduction_n_liBlockchain an introduction_n_li
Blockchain an introduction_n_li
nikinew1
 
Token Systems, Payment Channels, and Corporate Currencies
Token Systems, Payment Channels, and Corporate CurrenciesToken Systems, Payment Channels, and Corporate Currencies
Token Systems, Payment Channels, and Corporate Currencies
Bernhard Haslhofer
 
Hello world contract
Hello world contractHello world contract
Hello world contract
Gene Leybzon
 
Blockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on AzureBlockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on Azure
Nuri Cankaya
 
Ethereum Mining How To
Ethereum Mining How ToEthereum Mining How To
Ethereum Mining How To
Nugroho Gito
 
Click Ventures Blockchain Ecosystem Report 2018
Click Ventures Blockchain Ecosystem Report 2018Click Ventures Blockchain Ecosystem Report 2018
Click Ventures Blockchain Ecosystem Report 2018
Frederick Ng
 
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Codemotion
 
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Jerome de Tychey - Building Web3.0 with Ethereum - Codemotion Berlin 2018
Codemotion
 
BLOCKCHAIN PPT.pptx
BLOCKCHAIN PPT.pptxBLOCKCHAIN PPT.pptx
BLOCKCHAIN PPT.pptx
SohanaAmreen
 
Banking on blockchains
Banking on blockchainsBanking on blockchains
Banking on blockchains
Ruben Tan
 
Ethereum Block Chain
Ethereum Block ChainEthereum Block Chain
Ethereum Block Chain
SanatPandoh
 
Building Apps with Ethereum Smart Contract
Building Apps with Ethereum Smart ContractBuilding Apps with Ethereum Smart Contract
Building Apps with Ethereum Smart Contract
Vaideeswaran Sethuraman
 
Paradigm shift: from the bitcoin Blockchain to Networked Computing
Paradigm shift: from the bitcoin Blockchain to Networked ComputingParadigm shift: from the bitcoin Blockchain to Networked Computing
Paradigm shift: from the bitcoin Blockchain to Networked Computing
kumar641
 
Bitcoin and Blockchain
Bitcoin and BlockchainBitcoin and Blockchain
Bitcoin and Blockchain
Chen Wu
 
The Bitcoin Rocketship @ BTC Miami 2015
The Bitcoin Rocketship @ BTC Miami 2015The Bitcoin Rocketship @ BTC Miami 2015
The Bitcoin Rocketship @ BTC Miami 2015
Jeff Garzik
 
Blockchain, smart contracts - introduction
Blockchain, smart contracts - introductionBlockchain, smart contracts - introduction
Blockchain, smart contracts - introduction
Lukasz Jarmulowicz
 
Public Blockchain Presentation1 Nodes remain anonymous through cryptographic ...
Public Blockchain Presentation1 Nodes remain anonymous through cryptographic ...Public Blockchain Presentation1 Nodes remain anonymous through cryptographic ...
Public Blockchain Presentation1 Nodes remain anonymous through cryptographic ...
archana388558
 
Blockchain an introduction_n_li
Blockchain an introduction_n_liBlockchain an introduction_n_li
Blockchain an introduction_n_li
nikinew1
 
Token Systems, Payment Channels, and Corporate Currencies
Token Systems, Payment Channels, and Corporate CurrenciesToken Systems, Payment Channels, and Corporate Currencies
Token Systems, Payment Channels, and Corporate Currencies
Bernhard Haslhofer
 
Hello world contract
Hello world contractHello world contract
Hello world contract
Gene Leybzon
 
Blockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on AzureBlockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on Azure
Nuri Cankaya
 
Ethereum Mining How To
Ethereum Mining How ToEthereum Mining How To
Ethereum Mining How To
Nugroho Gito
 
Click Ventures Blockchain Ecosystem Report 2018
Click Ventures Blockchain Ecosystem Report 2018Click Ventures Blockchain Ecosystem Report 2018
Click Ventures Blockchain Ecosystem Report 2018
Frederick Ng
 
Ad

More from Grokking VN (20)

Grokking Techtalk #46: Lessons from years hacking and defending Vietnamese banks
Grokking Techtalk #46: Lessons from years hacking and defending Vietnamese banksGrokking Techtalk #46: Lessons from years hacking and defending Vietnamese banks
Grokking Techtalk #46: Lessons from years hacking and defending Vietnamese banks
Grokking VN
 
Grokking Techtalk #45: First Principles Thinking
Grokking Techtalk #45: First Principles ThinkingGrokking Techtalk #45: First Principles Thinking
Grokking Techtalk #45: First Principles Thinking
Grokking VN
 
Grokking Techtalk #42: Engineering challenges on building data platform for M...
Grokking Techtalk #42: Engineering challenges on building data platform for M...Grokking Techtalk #42: Engineering challenges on building data platform for M...
Grokking Techtalk #42: Engineering challenges on building data platform for M...
Grokking VN
 
Grokking Techtalk #43: Payment gateway demystified
Grokking Techtalk #43: Payment gateway demystifiedGrokking Techtalk #43: Payment gateway demystified
Grokking Techtalk #43: Payment gateway demystified
Grokking VN
 
Grokking Techtalk #40: Consistency and Availability tradeoff in database cluster
Grokking Techtalk #40: Consistency and Availability tradeoff in database clusterGrokking Techtalk #40: Consistency and Availability tradeoff in database cluster
Grokking Techtalk #40: Consistency and Availability tradeoff in database cluster
Grokking VN
 
Grokking Techtalk #40: AWS’s philosophy on designing MLOps platform
Grokking Techtalk #40: AWS’s philosophy on designing MLOps platformGrokking Techtalk #40: AWS’s philosophy on designing MLOps platform
Grokking Techtalk #40: AWS’s philosophy on designing MLOps platform
Grokking VN
 
Grokking Techtalk #39: Gossip protocol and applications
Grokking Techtalk #39: Gossip protocol and applicationsGrokking Techtalk #39: Gossip protocol and applications
Grokking Techtalk #39: Gossip protocol and applications
Grokking VN
 
Grokking Techtalk #39: How to build an event driven architecture with Kafka ...
 Grokking Techtalk #39: How to build an event driven architecture with Kafka ... Grokking Techtalk #39: How to build an event driven architecture with Kafka ...
Grokking Techtalk #39: How to build an event driven architecture with Kafka ...
Grokking VN
 
Grokking Techtalk #38: Escape Analysis in Go compiler
 Grokking Techtalk #38: Escape Analysis in Go compiler Grokking Techtalk #38: Escape Analysis in Go compiler
Grokking Techtalk #38: Escape Analysis in Go compiler
Grokking VN
 
Grokking Techtalk #37: Data intensive problem
 Grokking Techtalk #37: Data intensive problem Grokking Techtalk #37: Data intensive problem
Grokking Techtalk #37: Data intensive problem
Grokking VN
 
Grokking Techtalk #37: Software design and refactoring
 Grokking Techtalk #37: Software design and refactoring Grokking Techtalk #37: Software design and refactoring
Grokking Techtalk #37: Software design and refactoring
Grokking VN
 
Grokking TechTalk #35: Efficient spellchecking
Grokking TechTalk #35: Efficient spellcheckingGrokking TechTalk #35: Efficient spellchecking
Grokking TechTalk #35: Efficient spellchecking
Grokking VN
 
Grokking Techtalk #34: K8S On-premise: Incident & Lesson Learned ZaloPay Mer...
 Grokking Techtalk #34: K8S On-premise: Incident & Lesson Learned ZaloPay Mer... Grokking Techtalk #34: K8S On-premise: Incident & Lesson Learned ZaloPay Mer...
Grokking Techtalk #34: K8S On-premise: Incident & Lesson Learned ZaloPay Mer...
Grokking VN
 
Grokking TechTalk #33: High Concurrency Architecture at TIKI
Grokking TechTalk #33: High Concurrency Architecture at TIKIGrokking TechTalk #33: High Concurrency Architecture at TIKI
Grokking TechTalk #33: High Concurrency Architecture at TIKI
Grokking VN
 
Grokking TechTalk #33: Architecture of AI-First Systems - Engineering for Big...
Grokking TechTalk #33: Architecture of AI-First Systems - Engineering for Big...Grokking TechTalk #33: Architecture of AI-First Systems - Engineering for Big...
Grokking TechTalk #33: Architecture of AI-First Systems - Engineering for Big...
Grokking VN
 
SOLID & Design Patterns
SOLID & Design PatternsSOLID & Design Patterns
SOLID & Design Patterns
Grokking VN
 
Grokking TechTalk #31: Asynchronous Communications
Grokking TechTalk #31: Asynchronous CommunicationsGrokking TechTalk #31: Asynchronous Communications
Grokking TechTalk #31: Asynchronous Communications
Grokking VN
 
Grokking TechTalk #30: From App to Ecosystem: Lessons Learned at Scale
Grokking TechTalk #30: From App to Ecosystem: Lessons Learned at ScaleGrokking TechTalk #30: From App to Ecosystem: Lessons Learned at Scale
Grokking TechTalk #30: From App to Ecosystem: Lessons Learned at Scale
Grokking VN
 
Grokking TechTalk #29: Building Realtime Metrics Platform at LinkedIn
Grokking TechTalk #29: Building Realtime Metrics Platform at LinkedInGrokking TechTalk #29: Building Realtime Metrics Platform at LinkedIn
Grokking TechTalk #29: Building Realtime Metrics Platform at LinkedIn
Grokking VN
 
Grokking TechTalk #27: Optimal Binary Search Tree
Grokking TechTalk #27: Optimal Binary Search TreeGrokking TechTalk #27: Optimal Binary Search Tree
Grokking TechTalk #27: Optimal Binary Search Tree
Grokking VN
 
Grokking Techtalk #46: Lessons from years hacking and defending Vietnamese banks
Grokking Techtalk #46: Lessons from years hacking and defending Vietnamese banksGrokking Techtalk #46: Lessons from years hacking and defending Vietnamese banks
Grokking Techtalk #46: Lessons from years hacking and defending Vietnamese banks
Grokking VN
 
Grokking Techtalk #45: First Principles Thinking
Grokking Techtalk #45: First Principles ThinkingGrokking Techtalk #45: First Principles Thinking
Grokking Techtalk #45: First Principles Thinking
Grokking VN
 
Grokking Techtalk #42: Engineering challenges on building data platform for M...
Grokking Techtalk #42: Engineering challenges on building data platform for M...Grokking Techtalk #42: Engineering challenges on building data platform for M...
Grokking Techtalk #42: Engineering challenges on building data platform for M...
Grokking VN
 
Grokking Techtalk #43: Payment gateway demystified
Grokking Techtalk #43: Payment gateway demystifiedGrokking Techtalk #43: Payment gateway demystified
Grokking Techtalk #43: Payment gateway demystified
Grokking VN
 
Grokking Techtalk #40: Consistency and Availability tradeoff in database cluster
Grokking Techtalk #40: Consistency and Availability tradeoff in database clusterGrokking Techtalk #40: Consistency and Availability tradeoff in database cluster
Grokking Techtalk #40: Consistency and Availability tradeoff in database cluster
Grokking VN
 
Grokking Techtalk #40: AWS’s philosophy on designing MLOps platform
Grokking Techtalk #40: AWS’s philosophy on designing MLOps platformGrokking Techtalk #40: AWS’s philosophy on designing MLOps platform
Grokking Techtalk #40: AWS’s philosophy on designing MLOps platform
Grokking VN
 
Grokking Techtalk #39: Gossip protocol and applications
Grokking Techtalk #39: Gossip protocol and applicationsGrokking Techtalk #39: Gossip protocol and applications
Grokking Techtalk #39: Gossip protocol and applications
Grokking VN
 
Grokking Techtalk #39: How to build an event driven architecture with Kafka ...
 Grokking Techtalk #39: How to build an event driven architecture with Kafka ... Grokking Techtalk #39: How to build an event driven architecture with Kafka ...
Grokking Techtalk #39: How to build an event driven architecture with Kafka ...
Grokking VN
 
Grokking Techtalk #38: Escape Analysis in Go compiler
 Grokking Techtalk #38: Escape Analysis in Go compiler Grokking Techtalk #38: Escape Analysis in Go compiler
Grokking Techtalk #38: Escape Analysis in Go compiler
Grokking VN
 
Grokking Techtalk #37: Data intensive problem
 Grokking Techtalk #37: Data intensive problem Grokking Techtalk #37: Data intensive problem
Grokking Techtalk #37: Data intensive problem
Grokking VN
 
Grokking Techtalk #37: Software design and refactoring
 Grokking Techtalk #37: Software design and refactoring Grokking Techtalk #37: Software design and refactoring
Grokking Techtalk #37: Software design and refactoring
Grokking VN
 
Grokking TechTalk #35: Efficient spellchecking
Grokking TechTalk #35: Efficient spellcheckingGrokking TechTalk #35: Efficient spellchecking
Grokking TechTalk #35: Efficient spellchecking
Grokking VN
 
Grokking Techtalk #34: K8S On-premise: Incident & Lesson Learned ZaloPay Mer...
 Grokking Techtalk #34: K8S On-premise: Incident & Lesson Learned ZaloPay Mer... Grokking Techtalk #34: K8S On-premise: Incident & Lesson Learned ZaloPay Mer...
Grokking Techtalk #34: K8S On-premise: Incident & Lesson Learned ZaloPay Mer...
Grokking VN
 
Grokking TechTalk #33: High Concurrency Architecture at TIKI
Grokking TechTalk #33: High Concurrency Architecture at TIKIGrokking TechTalk #33: High Concurrency Architecture at TIKI
Grokking TechTalk #33: High Concurrency Architecture at TIKI
Grokking VN
 
Grokking TechTalk #33: Architecture of AI-First Systems - Engineering for Big...
Grokking TechTalk #33: Architecture of AI-First Systems - Engineering for Big...Grokking TechTalk #33: Architecture of AI-First Systems - Engineering for Big...
Grokking TechTalk #33: Architecture of AI-First Systems - Engineering for Big...
Grokking VN
 
SOLID & Design Patterns
SOLID & Design PatternsSOLID & Design Patterns
SOLID & Design Patterns
Grokking VN
 
Grokking TechTalk #31: Asynchronous Communications
Grokking TechTalk #31: Asynchronous CommunicationsGrokking TechTalk #31: Asynchronous Communications
Grokking TechTalk #31: Asynchronous Communications
Grokking VN
 
Grokking TechTalk #30: From App to Ecosystem: Lessons Learned at Scale
Grokking TechTalk #30: From App to Ecosystem: Lessons Learned at ScaleGrokking TechTalk #30: From App to Ecosystem: Lessons Learned at Scale
Grokking TechTalk #30: From App to Ecosystem: Lessons Learned at Scale
Grokking VN
 
Grokking TechTalk #29: Building Realtime Metrics Platform at LinkedIn
Grokking TechTalk #29: Building Realtime Metrics Platform at LinkedInGrokking TechTalk #29: Building Realtime Metrics Platform at LinkedIn
Grokking TechTalk #29: Building Realtime Metrics Platform at LinkedIn
Grokking VN
 
Grokking TechTalk #27: Optimal Binary Search Tree
Grokking TechTalk #27: Optimal Binary Search TreeGrokking TechTalk #27: Optimal Binary Search Tree
Grokking TechTalk #27: Optimal Binary Search Tree
Grokking VN
 
Ad

Recently uploaded (20)

Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 

Grokking TechTalk #17: Introduction to blockchain

  • 2. 2 Agenda 1. What is a Blockchain? 2. Introduction to Ethereum
  • 3. 3 1. WHAT IS A BLOCKCHAIN?
  • 4. 4 FIRST, WHY DO WE CARE ABOUT BLOCKCHAINS? A blockchain allows for trustless transactions between multiple parties. Or, more importantly, it allows transactions without trust of a third party intermediary!
  • 6. 6 BLOCKCHAIN = DISTRIBUTED LEDGER + CONSENSUS A list of transactions between accounts (a ledger) are stored on distributed “nodes”. New transactions are periodically added into a block. Nodes use an agreed upon protocol to reach consensus on when a new block is appended to the chain of previous blocks.
  • 7. 7 A TRANSACTION THAT OCCURS BETWEEN ACCOUNTS Transaction #399 Account A Account B E.g. Send 10 tokens An example transaction could be: Account A will send 10 tokens to Account B
  • 8. 8 A LEDGER IS A LIST OF TRANSACTIONS (GROUPED INTO BLOCKS) LEDGER Block #100 Last Block: #99 Transaction #399 Transaction #400 Transaction #401 Block #97 Block #98 Block #99
  • 9. 9 BLOCKS ARE CHAINED TOGETHER LEDGER Block #100 Last Block: #99 Transaction #399 Transaction #400 Block #97 Block #98 Block #99 The ledger is a chain of blocks! Each block is created with a pointer to the previous block creating a blockchain! The ledger is a chain of blocks! Each block is created with a pointer to the previous block creating a blockchain!
  • 10. 10 THE LEDGER IS COPIED AND DISTRIBUTED AMONG NODES � � � � �
  • 11. 11 EACH NODE HAS A COPY OF THE LEDGER AND AT LEAST ONE OF THEM WILL CREATE THE NEXT BLOCK! � � � � � 11
  • 12. 12 EXAMPLE CONSENSUS PROTOCOL: PROOF OF WORK Different methods or protocols exist for distributed nodes to reach consensus
  • 13. 13 NODES ATTEMPTING TO CREATE NEW BLOCKS ARE USUALLY CALLED “MINERS” � � � � �The first Miner to solve a hard math problem creates the next block and is rewarded
  • 14. 14 E.g. Bitcoin Miners currently receive 12.5 BTC plus all included transaction fees New block: Every ~10 minutes THE MAJORITY OF PoW BLOCKCHAINS INCENTIVIZE MINERS WITH REWARDS E.g. Ethereum Miners currently receive 5 ETH plus all included gas fees (more on this shortly) New block: Every ~15 seconds
  • 15. 15 A BRIEF HISTORY OF BLOCKCHAINS ▸ 2008: Bitcoin and blockchain idea gifted to world by “Satoshi Nakamoto” ▸ 2009: Bitcoin client released (open source) ▸ 2011: Litecoin, first “altcoin,” released (based on bitcoin source code) ▸ 2014: Ethereum whitepaper released/crowdsale ▸ 2015: Ethereum “Frontier” launched
  • 17. 17 WHAT IS ETHEREUM? OPEN SOURCE Like Bitcoin, Ethereum is a public blockchain no one controls or owns.
  • 18. 18 WHAT IS ETHEREUM? OPEN SOURCE Like Bitcoin, Ethereum is a public blockchain no one controls or owns. PROOF OF WORK CONSENSUS The Ethereum Whitepaper specifies the PoW rules and 4+ major clients exist and run the “nodes”.
  • 19. 19 WHAT IS ETHEREUM? OPEN SOURCE Like Bitcoin, Ethereum is a public blockchain no one controls or owns. PROOF OF WORK CONSENSUS The Ethereum Whitepaper specifies the PoW rules and 4+ major clients exist and run the “nodes”. ETHEREUM VIRTUAL MACHINE (EVM) Transactions are more than just values, but “Turing” complete programs that run when blocks are processed by nodes.
  • 20. 20 ETHEREUM VIRTUAL MACHINE General Purpose Supports Bitcoin- like value transactions (e.g. send 10 ETH from account A to B) or more complex applications.
  • 21. 21 ETHEREUM VIRTUAL MACHINE General Purpose Supports Bitcoin- like value transactions (e.g. send 10 ETH from account A to B) or more complex applications. Smart Contracts Turing complete languages (e.g. Solidity) allow the Ethereum transactions to be programmed to do different operations.
  • 22. 22 ETHEREUM VIRTUAL MACHINE General Purpose Supports Bitcoin- like value transactions (e.g. send 10 ETH from account A to B) or more complex applications. Smart Contracts Turing complete languages (e.g. Solidity) allow the Ethereum transactions to be programmed to do different operations. Decentralized Apps (DApps) GUIs for smart contracts allow users to interact in ways similar to web 2.0 (HTML/JS/CSS).
  • 23. 23 THINK: WORLD COMPUTER The Ethereum blockchain is the first “decentralized world computer” to ever exist!
  • 24. 24 TRANSACTIONS AND CONTRACTS Two types of Accounts ▸ Externally owned accounts (controlled by people/keys similar to Bitcoin) ▸ Contract accounts (controlled by smart contract code)
  • 25. 25 TRANSACTIONS AND CONTRACTS Transactions can include more than just value transfer; they can include programming or bytecode that does things (smart contracts) Transaction #3512 If (Account A == Member) && (Date >= 4Q): Dividend = 25% the current value of Contract C: Transaction: Contract C Account A Send Dividend
  • 26. 26 TRANSACTIONS AND CONTRACTS Submitting transactions and contracts to the blockchain has an associated “gas” cost paid in Ether based on the complexity of the operations. Transaction #256 If (Account A == Member) && (Date >= 4Q): Dividend = 50% the current value of Contract C: Transaction: Contract C Send Dividend IF +70 Gas AND +30 Gas EQUAL? +40 Gas DIVIDE +120 Gas SEND +20 Gas TOTAL COST = 280 Gas
  • 27. 27 TRANSACTIONS AND CONTRACTS LEDGER Block #26 Last Block: #25 Transaction #256 Transaction #257 Transaction #258 Block #23 Block #24 Block #25
  • 28. 28 TRANSACTIONS AND CONTRACTS Think of the Ethereum Ledger like a SPREADSHEET Cells can just have a value or they can give the result of a macro/script. Trans- action Account A Account B Account C (Contract) #256 10 10 0 #257 5 5 10 #258 10 5 Dividend(A)
  • 29. 29 THIS IS AN EXAMPLE SMART CONTRACT WRITTEN IN SOLIDITY contract MyToken { /* This creates an array with all balances */ mapping (address => uint256) public balanceOf; /* Initializes contract with initial supply tokens to the creator of the contract */ function MyToken( uint256 initialSupply ) { balanceOf[msg.sender] = initialSupply; // Give the creator all initial tokens } /* Send coins */ function transfer(address _to, uint256 _value) { if (balanceOf[msg.sender] < _value) throw; // Check if the sender has enough if (balanceOf[_to] + _value < balanceOf[_to]) throw; // Check for overflows balanceOf[msg.sender] -= _value; // Subtract from the sender balanceOf[_to] += _value; // Add the same to the recipient } }
  • 30. 30 USE CASES FOR DAPPS AND PROJECTS IN DEVELOPMENT Decentralized Exchange Convert between crypto-currencies and tokens EtherDelta, EtherEx Prediction Market Utilize the wisdom of the crowd to predict future events Augur, Gnosis Distributed Computing Enable users to lease out spare compute cycles (think: uber for your computer, dAWS) Golem Identity Management Retain ownership of your online identity, metadata, and relationships. uPort Crowd Sale Platform Create a custom token for trade, payment, customer loyalty, etc. and take it to market. Ethereum, Firstblood Digital Asset Management Manage, buy, sell physical objects cryptographically tied to digital tokens. Digix
  • 31. 31 Thank you for your listening