SlideShare a Scribd company logo
1 of 23
Download to read offline
Get smarter on
smart contracts
Thomas Vanderstraeten
https://cryptizens.io
hello@cryptizens.io
Starter quiz: where’s the fake blockchain project?
2© Cryptizens.io
The plan: go through this together
A sense of how blockchain can run applications
A refresher about blockchain
A point of view on smart contracts biz implications
A ‘get-your-hands-dirty’ exercise
3© Cryptizens.io
Blockchain refresher: what lies beyond the buzz?
A DATABASE OF TRANSACTIONS (= LEDGER)
ORGANIZED BY BLOCKS IN A SEQUENTIAL WAY (= CHAIN OF BLOCKS),
SECURED SO IT CANNOT BE COUNTERFEITED (= CRYPTO-MINED),
AND REPLICATED ACROSS MANY COMPUTERS (= DISTRIBUTED)
4© Cryptizens.io
A database of transactions
Transactions
DB
Alice sends 3 BTC to Bob
Bob sends 5 BTC to Jeff
Kim sends 1 BTC to Alice
5© Cryptizens.io
Organized by blocks in a sequential way
Block N - 2
before
Jeff sends 1 BTC to Alice
Bob sends 1 BTC to Kim
Alice sends 1 BTC to Bob
Block N - 1
yesterdayDB
Alice sends 3 BTC to Bob
Bob sends 5 BTC to Jeff
Kim sends 1 BTC to Alice
Block N
today
6© Cryptizens.io
Secured so it cannot be counterfeited
Block N - 2
before
Block N - 1
yesterday
Block N
today
Transactions
Alice sends 3 BTC to Bob
Bob sends 5 BTC to Jeff
Kim sends 1 BTC to Alice
Transactions
Alice sends 3 BTC to Bob
Bob sends 6 BTC to Jeff
Kim sends 1 BTC to Alice
7© Cryptizens.io
Replicated across many computers
Alice’s
computer
DB
Jeff’s
computer
DB
Charles’s
computer
DB
Bob’s
computer
DB
Kim’s
computer
DB
8© Cryptizens.io
Blockchain’s resulting properties in a nutshell
Transparency
& auditability
Immutability
Decentralization
Common single
source of truth
Desintermediation
9© Cryptizens.io
In 2013, this guy created a blockchain to run apps
I’ve got a nice t-shirt, but what
about something nicer yet?
Let’s leverage blockchain’s
properties to run applications
called smart contracts!
Vitalik Buterin, Ethereum blockchain creator
10© Cryptizens.io
What is an app, fundamentally?
Data
base
Server
that runs
code
End-user
interface
Simple Web application architecture
11© Cryptizens.io
So, how can we use the blockchain to run apps?
Transactions
Alice sends 1 ETH
to CryptoKitties.co
DB
Start from a simple
‘financial transactions’
blockchain...
State of the world
Kitty_owner = Alice
Kitty_hungry = true
Transactions
Alice sends 1 ETH
to CryptoKitties.co
DB
...add general purpose
storage to play with
variables...
State of the world
Kitty_owner = Alice
Kitty_hungry = true
Transactions
- Alice sends 1 ETH to
CryptoKitties.co
- Alice feeds the cat
Functions
feedCat(cost = 0.5 ETH)
buyCat(cost = 1 ETH)
VM
DBSmart contract
...add functions to modify
these variables, and a
virtual machine to run these
functions...
© Cryptizens.io
Smart contract
State of the world
Kitty_owner = Alice
Kitty_hungry = true
Transactions
- Alice sends 1 ETH to
CryptoKitties.co
- Alice feeds the cat
Functions
feedCat(cost = 0.5 ETH)
buyCat(cost = 1 ETH)
VM
DB
Website interface
feed buy
WebBlockchain
...add a sexy web front-end to
trigger these functions, and
you’re done!
Decentralized App (Dapp)
UI
12
Blockchain properties can thus be leveraged for apps!
Transparency
& auditability
Immutability
Decentralization
Common single
source of truth
Desintermediation
Everyone sees the
application code,
so no malicious
features can be
hidden
No one can alter the
the code after it has
been deployed
All participate in
the running of the
application
No single
stakeholder owns
the app for their
single benefit
All can agree on
a common set of
functions and
data
SMART
CONTRACT
13© Cryptizens.io
TECHNICAL POINT OF VIEW
And that’s how the term ‘smart contract’ was coined
SMART
CONTRACT
It not only
documents the
agreement, but
also enforces it
(code execution)
Cannot be
changed once it
has been signed
(deployed on the
blockchain)
Documents an
agreement
(implements a series
of functions with
triggers and effects)
Is public and
auditable for all
stakeholders
(distributed on the
blockchain)
Basically, just a computer
program (running on the
Ethereum virtual machine)
14© Cryptizens.io
BUSINESS POINT OF VIEW
Smart contracts applied to business: a lottery
Organizer
Participants
WITHOUT SMART CONTRACT
Payment provider
Escrow account
Lottery
Terms &
conditions
Company
statuses
Payments
Terms &
conditions
Winner pick
15© Cryptizens.io
We’ve built a complex ecosystem
of stakeholders, laws, processes
and documents to embed TRUST
in interactions, and protect people
in case of breaches!
Smart contracts applied to business: a lottery
Participants 16© Cryptizens.io
SMART
CONTRACT
Organizer
Who cares about trust? Smart
contracts technology allows us to
interact in a TRUSTLESS way,
where technology prevents
breaches of agreements! Meow!
WITH SMART CONTRACT
A real-life insurance smart contract: AXA Fizzy
17© Cryptizens.io
Oops...
My nonprofit smart contract venture: Cryptorun
60 KM around Brussels
SMART
CONTRACT
if ThomasHasRun60Km {
sendFundsToBeCode();
}
18© Cryptizens.io
A critical look at smart contracts business use
Still hard to connect to the outside world
without losing trust
Smart contract engineers might become the
lawyers of tomorrow
Immutability goes against lean development
Infancy issues (scalability, reliability)
? But yet, so much potential!
19© Cryptizens.io
Now, let’s get our hands dirty!
https://etherlearn.io
20© Cryptizens.io
First thing first: get some free (test) Ether!
21© Cryptizens.io
Install Metamask
wallet
Note your Rinkeby
account address
Post your address
on Google+
Paste the G+ post
link in the faucet
metamask.io plus.google.com faucet.rinkeby.io
1 2 3 4
=> then, restart
your browser!
And now, let’s deploy!
22© Cryptizens.io
Go on Etherlearn Click on deploy Check Etherscan Interact with it
1 2 3 4
etherlearn.io etherlearn.io rinkeby.etherscan.io etherlearn.io
Smart contracts guide

More Related Content

What's hot

Blockcchain development services | codezeros
Blockcchain development services | codezerosBlockcchain development services | codezeros
Blockcchain development services | codezerosCodezeros
 
Blockchaindev #1 - Ethereum Smart Contracts 101
Blockchaindev #1 - Ethereum Smart Contracts 101Blockchaindev #1 - Ethereum Smart Contracts 101
Blockchaindev #1 - Ethereum Smart Contracts 101Thiago Araujo
 
Smart Contract Audit Services | Smart Contracts Development Company
Smart Contract Audit Services | Smart Contracts Development CompanySmart Contract Audit Services | Smart Contracts Development Company
Smart Contract Audit Services | Smart Contracts Development CompanyCodezeros
 
Enterprise blockchain| Blockchain as a Service| Blockchain Disruption| Blockc...
Enterprise blockchain| Blockchain as a Service| Blockchain Disruption| Blockc...Enterprise blockchain| Blockchain as a Service| Blockchain Disruption| Blockc...
Enterprise blockchain| Blockchain as a Service| Blockchain Disruption| Blockc...Fluence.sh
 
Blockchain in insurance
Blockchain in insuranceBlockchain in insurance
Blockchain in insurancezaarahary
 
The impact of AI and Blockchain technologies in the Legal Industry
The impact of AI and Blockchain technologies in the Legal IndustryThe impact of AI and Blockchain technologies in the Legal Industry
The impact of AI and Blockchain technologies in the Legal IndustryHunter Thompson
 
A Complete Guide On Diem Blockchain
A Complete Guide On Diem BlockchainA Complete Guide On Diem Blockchain
A Complete Guide On Diem Blockchain101 Blockchains
 
Introduction to Decentralized Finance (DeFi)
Introduction to Decentralized Finance (DeFi)Introduction to Decentralized Finance (DeFi)
Introduction to Decentralized Finance (DeFi)101 Blockchains
 
Blockchain Technology in Insurance Vertical
Blockchain Technology in Insurance Vertical Blockchain Technology in Insurance Vertical
Blockchain Technology in Insurance Vertical Sandeepk316
 
Top 10 Reasons to Learn Blockchain | Blockchain Training | Blockchain Tutoria...
Top 10 Reasons to Learn Blockchain | Blockchain Training | Blockchain Tutoria...Top 10 Reasons to Learn Blockchain | Blockchain Training | Blockchain Tutoria...
Top 10 Reasons to Learn Blockchain | Blockchain Training | Blockchain Tutoria...Edureka!
 
Blockchain @ Insurance Analytics Summit Canada
Blockchain @ Insurance Analytics Summit CanadaBlockchain @ Insurance Analytics Summit Canada
Blockchain @ Insurance Analytics Summit CanadaCristina Ignatenco
 
Benefits of Applying Blockchain to Claim Processing in Insurance
Benefits of Applying Blockchain to Claim Processing in InsuranceBenefits of Applying Blockchain to Claim Processing in Insurance
Benefits of Applying Blockchain to Claim Processing in InsuranceNetSet Software
 
How Can Blockchain Accelerate Insurance Workflows
How Can Blockchain Accelerate Insurance WorkflowsHow Can Blockchain Accelerate Insurance Workflows
How Can Blockchain Accelerate Insurance WorkflowsM_InsurTech
 
Blockchain use cases in 2022 real world industry applications
Blockchain use cases in 2022 real world industry applicationsBlockchain use cases in 2022 real world industry applications
Blockchain use cases in 2022 real world industry applicationsArpitGautam20
 
Blockchain applications 15 killer concepts for you
Blockchain applications  15 killer concepts for you Blockchain applications  15 killer concepts for you
Blockchain applications 15 killer concepts for you Blockchain Council
 
Doing Business of Blockchain in India
Doing Business of Blockchain in IndiaDoing Business of Blockchain in India
Doing Business of Blockchain in IndiaEquiCorp Associates
 
Blockchain point of view for the telco, media and entertainment industry
Blockchain point of view for the telco, media and entertainment industryBlockchain point of view for the telco, media and entertainment industry
Blockchain point of view for the telco, media and entertainment industryIBM Blockchain
 

What's hot (20)

Blockcchain development services | codezeros
Blockcchain development services | codezerosBlockcchain development services | codezeros
Blockcchain development services | codezeros
 
Blockchain for Marketing & Insights
Blockchain for Marketing & InsightsBlockchain for Marketing & Insights
Blockchain for Marketing & Insights
 
Blockchaindev #1 - Ethereum Smart Contracts 101
Blockchaindev #1 - Ethereum Smart Contracts 101Blockchaindev #1 - Ethereum Smart Contracts 101
Blockchaindev #1 - Ethereum Smart Contracts 101
 
Ppt presentation 1
Ppt presentation 1Ppt presentation 1
Ppt presentation 1
 
Smart Contract Audit Services | Smart Contracts Development Company
Smart Contract Audit Services | Smart Contracts Development CompanySmart Contract Audit Services | Smart Contracts Development Company
Smart Contract Audit Services | Smart Contracts Development Company
 
Enterprise blockchain| Blockchain as a Service| Blockchain Disruption| Blockc...
Enterprise blockchain| Blockchain as a Service| Blockchain Disruption| Blockc...Enterprise blockchain| Blockchain as a Service| Blockchain Disruption| Blockc...
Enterprise blockchain| Blockchain as a Service| Blockchain Disruption| Blockc...
 
Blockchain in insurance
Blockchain in insuranceBlockchain in insurance
Blockchain in insurance
 
The impact of AI and Blockchain technologies in the Legal Industry
The impact of AI and Blockchain technologies in the Legal IndustryThe impact of AI and Blockchain technologies in the Legal Industry
The impact of AI and Blockchain technologies in the Legal Industry
 
A Complete Guide On Diem Blockchain
A Complete Guide On Diem BlockchainA Complete Guide On Diem Blockchain
A Complete Guide On Diem Blockchain
 
What is a blockchain wallet
What is a blockchain wallet What is a blockchain wallet
What is a blockchain wallet
 
Introduction to Decentralized Finance (DeFi)
Introduction to Decentralized Finance (DeFi)Introduction to Decentralized Finance (DeFi)
Introduction to Decentralized Finance (DeFi)
 
Blockchain Technology in Insurance Vertical
Blockchain Technology in Insurance Vertical Blockchain Technology in Insurance Vertical
Blockchain Technology in Insurance Vertical
 
Top 10 Reasons to Learn Blockchain | Blockchain Training | Blockchain Tutoria...
Top 10 Reasons to Learn Blockchain | Blockchain Training | Blockchain Tutoria...Top 10 Reasons to Learn Blockchain | Blockchain Training | Blockchain Tutoria...
Top 10 Reasons to Learn Blockchain | Blockchain Training | Blockchain Tutoria...
 
Blockchain @ Insurance Analytics Summit Canada
Blockchain @ Insurance Analytics Summit CanadaBlockchain @ Insurance Analytics Summit Canada
Blockchain @ Insurance Analytics Summit Canada
 
Benefits of Applying Blockchain to Claim Processing in Insurance
Benefits of Applying Blockchain to Claim Processing in InsuranceBenefits of Applying Blockchain to Claim Processing in Insurance
Benefits of Applying Blockchain to Claim Processing in Insurance
 
How Can Blockchain Accelerate Insurance Workflows
How Can Blockchain Accelerate Insurance WorkflowsHow Can Blockchain Accelerate Insurance Workflows
How Can Blockchain Accelerate Insurance Workflows
 
Blockchain use cases in 2022 real world industry applications
Blockchain use cases in 2022 real world industry applicationsBlockchain use cases in 2022 real world industry applications
Blockchain use cases in 2022 real world industry applications
 
Blockchain applications 15 killer concepts for you
Blockchain applications  15 killer concepts for you Blockchain applications  15 killer concepts for you
Blockchain applications 15 killer concepts for you
 
Doing Business of Blockchain in India
Doing Business of Blockchain in IndiaDoing Business of Blockchain in India
Doing Business of Blockchain in India
 
Blockchain point of view for the telco, media and entertainment industry
Blockchain point of view for the telco, media and entertainment industryBlockchain point of view for the telco, media and entertainment industry
Blockchain point of view for the telco, media and entertainment industry
 

Similar to Smart contracts guide

20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)Brussels Legal Hackers
 
CWIN17 Rome / blockchain
CWIN17 Rome / blockchainCWIN17 Rome / blockchain
CWIN17 Rome / blockchainCapgemini
 
Event Itnig - Smart Contracts by MarketPay, Juan Ignacio Pérez Sacristán
Event Itnig - Smart Contracts by MarketPay, Juan Ignacio Pérez SacristánEvent Itnig - Smart Contracts by MarketPay, Juan Ignacio Pérez Sacristán
Event Itnig - Smart Contracts by MarketPay, Juan Ignacio Pérez SacristánJuan Ignacio Pérez Sacristán
 
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 Computingkumar641
 
BlockChain for the Banker
BlockChain for the BankerBlockChain for the Banker
BlockChain for the BankerBohdan Szymanik
 
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
 
Blockchain Tokenization
Blockchain TokenizationBlockchain Tokenization
Blockchain TokenizationBellaj Badr
 
Blockchain, smart contracts - introduction
Blockchain, smart contracts - introductionBlockchain, smart contracts - introduction
Blockchain, smart contracts - introductionLukasz Jarmulowicz
 
Blockchain Technology and Cryptocurrency
Blockchain Technology and CryptocurrencyBlockchain Technology and Cryptocurrency
Blockchain Technology and CryptocurrencyAdityaSingh1213
 
Bitcoin and blockchain basics
Bitcoin and blockchain basicsBitcoin and blockchain basics
Bitcoin and blockchain basicsMichele Pace
 
Blockchain an introduction_n_li
Blockchain an introduction_n_liBlockchain an introduction_n_li
Blockchain an introduction_n_linikinew1
 
Webinar on BITCOIN FORENSICS : BRIGHTTALK
Webinar on BITCOIN FORENSICS : BRIGHTTALKWebinar on BITCOIN FORENSICS : BRIGHTTALK
Webinar on BITCOIN FORENSICS : BRIGHTTALKanupriti
 
Kriptovaluták, hashbányászat és okoscicák
Kriptovaluták, hashbányászat és okoscicákKriptovaluták, hashbányászat és okoscicák
Kriptovaluták, hashbányászat és okoscicákhackersuli
 
Blockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on AzureBlockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on AzureNuri Cankaya
 
Introduction to Bitcoin & Blockchain @ darefest16
Introduction to Bitcoin & Blockchain @ darefest16Introduction to Bitcoin & Blockchain @ darefest16
Introduction to Bitcoin & Blockchain @ darefest16Sam Wouters
 
BITCOIN TECHNOLOGY AND ITS USES
BITCOIN TECHNOLOGY AND ITS USESBITCOIN TECHNOLOGY AND ITS USES
BITCOIN TECHNOLOGY AND ITS USESRishikese MR
 

Similar to Smart contracts guide (20)

Blockchain.pptx
Blockchain.pptxBlockchain.pptx
Blockchain.pptx
 
20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)20170620 MEETUP intro to blockchain and smart contracts (1)
20170620 MEETUP intro to blockchain and smart contracts (1)
 
CWIN17 Rome / blockchain
CWIN17 Rome / blockchainCWIN17 Rome / blockchain
CWIN17 Rome / blockchain
 
Event Itnig - Smart Contracts by MarketPay, Juan Ignacio Pérez Sacristán
Event Itnig - Smart Contracts by MarketPay, Juan Ignacio Pérez SacristánEvent Itnig - Smart Contracts by MarketPay, Juan Ignacio Pérez Sacristán
Event Itnig - Smart Contracts by MarketPay, Juan Ignacio Pérez Sacristán
 
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
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
BlockChain for the Banker
BlockChain for the BankerBlockChain for the Banker
BlockChain for the Banker
 
Blockchain External.pdf
Blockchain External.pdfBlockchain External.pdf
Blockchain External.pdf
 
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
 
Blockchain Tokenization
Blockchain TokenizationBlockchain Tokenization
Blockchain Tokenization
 
Blockchain, smart contracts - introduction
Blockchain, smart contracts - introductionBlockchain, smart contracts - introduction
Blockchain, smart contracts - introduction
 
Blockchain Technology and Cryptocurrency
Blockchain Technology and CryptocurrencyBlockchain Technology and Cryptocurrency
Blockchain Technology and Cryptocurrency
 
Bitcoin and blockchain basics
Bitcoin and blockchain basicsBitcoin and blockchain basics
Bitcoin and blockchain basics
 
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
 
Webinar on BITCOIN FORENSICS : BRIGHTTALK
Webinar on BITCOIN FORENSICS : BRIGHTTALKWebinar on BITCOIN FORENSICS : BRIGHTTALK
Webinar on BITCOIN FORENSICS : BRIGHTTALK
 
Kriptovaluták, hashbányászat és okoscicák
Kriptovaluták, hashbányászat és okoscicákKriptovaluták, hashbányászat és okoscicák
Kriptovaluták, hashbányászat és okoscicák
 
Blockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on AzureBlockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on Azure
 
Introduction to Bitcoin & Blockchain @ darefest16
Introduction to Bitcoin & Blockchain @ darefest16Introduction to Bitcoin & Blockchain @ darefest16
Introduction to Bitcoin & Blockchain @ darefest16
 
BITCOIN TECHNOLOGY AND ITS USES
BITCOIN TECHNOLOGY AND ITS USESBITCOIN TECHNOLOGY AND ITS USES
BITCOIN TECHNOLOGY AND ITS USES
 

Recently uploaded

Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 

Recently uploaded (20)

Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 

Smart contracts guide

  • 1. Get smarter on smart contracts Thomas Vanderstraeten https://cryptizens.io hello@cryptizens.io
  • 2. Starter quiz: where’s the fake blockchain project? 2© Cryptizens.io
  • 3. The plan: go through this together A sense of how blockchain can run applications A refresher about blockchain A point of view on smart contracts biz implications A ‘get-your-hands-dirty’ exercise 3© Cryptizens.io
  • 4. Blockchain refresher: what lies beyond the buzz? A DATABASE OF TRANSACTIONS (= LEDGER) ORGANIZED BY BLOCKS IN A SEQUENTIAL WAY (= CHAIN OF BLOCKS), SECURED SO IT CANNOT BE COUNTERFEITED (= CRYPTO-MINED), AND REPLICATED ACROSS MANY COMPUTERS (= DISTRIBUTED) 4© Cryptizens.io
  • 5. A database of transactions Transactions DB Alice sends 3 BTC to Bob Bob sends 5 BTC to Jeff Kim sends 1 BTC to Alice 5© Cryptizens.io
  • 6. Organized by blocks in a sequential way Block N - 2 before Jeff sends 1 BTC to Alice Bob sends 1 BTC to Kim Alice sends 1 BTC to Bob Block N - 1 yesterdayDB Alice sends 3 BTC to Bob Bob sends 5 BTC to Jeff Kim sends 1 BTC to Alice Block N today 6© Cryptizens.io
  • 7. Secured so it cannot be counterfeited Block N - 2 before Block N - 1 yesterday Block N today Transactions Alice sends 3 BTC to Bob Bob sends 5 BTC to Jeff Kim sends 1 BTC to Alice Transactions Alice sends 3 BTC to Bob Bob sends 6 BTC to Jeff Kim sends 1 BTC to Alice 7© Cryptizens.io
  • 8. Replicated across many computers Alice’s computer DB Jeff’s computer DB Charles’s computer DB Bob’s computer DB Kim’s computer DB 8© Cryptizens.io
  • 9. Blockchain’s resulting properties in a nutshell Transparency & auditability Immutability Decentralization Common single source of truth Desintermediation 9© Cryptizens.io
  • 10. In 2013, this guy created a blockchain to run apps I’ve got a nice t-shirt, but what about something nicer yet? Let’s leverage blockchain’s properties to run applications called smart contracts! Vitalik Buterin, Ethereum blockchain creator 10© Cryptizens.io
  • 11. What is an app, fundamentally? Data base Server that runs code End-user interface Simple Web application architecture 11© Cryptizens.io
  • 12. So, how can we use the blockchain to run apps? Transactions Alice sends 1 ETH to CryptoKitties.co DB Start from a simple ‘financial transactions’ blockchain... State of the world Kitty_owner = Alice Kitty_hungry = true Transactions Alice sends 1 ETH to CryptoKitties.co DB ...add general purpose storage to play with variables... State of the world Kitty_owner = Alice Kitty_hungry = true Transactions - Alice sends 1 ETH to CryptoKitties.co - Alice feeds the cat Functions feedCat(cost = 0.5 ETH) buyCat(cost = 1 ETH) VM DBSmart contract ...add functions to modify these variables, and a virtual machine to run these functions... © Cryptizens.io Smart contract State of the world Kitty_owner = Alice Kitty_hungry = true Transactions - Alice sends 1 ETH to CryptoKitties.co - Alice feeds the cat Functions feedCat(cost = 0.5 ETH) buyCat(cost = 1 ETH) VM DB Website interface feed buy WebBlockchain ...add a sexy web front-end to trigger these functions, and you’re done! Decentralized App (Dapp) UI 12
  • 13. Blockchain properties can thus be leveraged for apps! Transparency & auditability Immutability Decentralization Common single source of truth Desintermediation Everyone sees the application code, so no malicious features can be hidden No one can alter the the code after it has been deployed All participate in the running of the application No single stakeholder owns the app for their single benefit All can agree on a common set of functions and data SMART CONTRACT 13© Cryptizens.io TECHNICAL POINT OF VIEW
  • 14. And that’s how the term ‘smart contract’ was coined SMART CONTRACT It not only documents the agreement, but also enforces it (code execution) Cannot be changed once it has been signed (deployed on the blockchain) Documents an agreement (implements a series of functions with triggers and effects) Is public and auditable for all stakeholders (distributed on the blockchain) Basically, just a computer program (running on the Ethereum virtual machine) 14© Cryptizens.io BUSINESS POINT OF VIEW
  • 15. Smart contracts applied to business: a lottery Organizer Participants WITHOUT SMART CONTRACT Payment provider Escrow account Lottery Terms & conditions Company statuses Payments Terms & conditions Winner pick 15© Cryptizens.io We’ve built a complex ecosystem of stakeholders, laws, processes and documents to embed TRUST in interactions, and protect people in case of breaches!
  • 16. Smart contracts applied to business: a lottery Participants 16© Cryptizens.io SMART CONTRACT Organizer Who cares about trust? Smart contracts technology allows us to interact in a TRUSTLESS way, where technology prevents breaches of agreements! Meow! WITH SMART CONTRACT
  • 17. A real-life insurance smart contract: AXA Fizzy 17© Cryptizens.io Oops...
  • 18. My nonprofit smart contract venture: Cryptorun 60 KM around Brussels SMART CONTRACT if ThomasHasRun60Km { sendFundsToBeCode(); } 18© Cryptizens.io
  • 19. A critical look at smart contracts business use Still hard to connect to the outside world without losing trust Smart contract engineers might become the lawyers of tomorrow Immutability goes against lean development Infancy issues (scalability, reliability) ? But yet, so much potential! 19© Cryptizens.io
  • 20. Now, let’s get our hands dirty! https://etherlearn.io 20© Cryptizens.io
  • 21. First thing first: get some free (test) Ether! 21© Cryptizens.io Install Metamask wallet Note your Rinkeby account address Post your address on Google+ Paste the G+ post link in the faucet metamask.io plus.google.com faucet.rinkeby.io 1 2 3 4 => then, restart your browser!
  • 22. And now, let’s deploy! 22© Cryptizens.io Go on Etherlearn Click on deploy Check Etherscan Interact with it 1 2 3 4 etherlearn.io etherlearn.io rinkeby.etherscan.io etherlearn.io