SlideShare une entreprise Scribd logo
1  sur  22
Demystifying Smart Contracts
Bernard Peh (Founder - Whale Tech)
About Me
201
1
2013 2015 2017
Why Whale Tech?
Whale Tech is an Australian Based Blockchain
development and education company aiming to help
the companies adapt to the new Blockchain revolution.
What is a Smart Contract?
Smart: Digital automation. Disputes is enforced by
code and immutable.
Contract: an agreement between multiple parties
which could be used as evidence should dispute
between the parties arises.
We are living in the world of contracts
We exchange services everyday.
We make agreements - verbal, physical or digital.
Formula for a contract to work
A contract requires 4 criteria in order to work:
● Identity verification
● Immutability Evidence
● Commitment by staking something of value to you
● Enforcement of rightful behaviour.
Blockchain + SC = Matchmate in Heaven
● Blockchain (aka DLT) - Identity and Immutability
● Smart contracts - Staking of value and Rules
enforcement
The Blockchain Revolution
“The technology of tomorrow has expired today.”
•Blockchain 1.0: Store of value (Cryptocurrency). Eg
Bitcoin, Ripple
•Blockchain 2.0: Store of value and Smart Contracts
(Distributed Apps or DAPPS in short). Eg Ethereum,
EOS, Cardano, Neo
•Blockchain 3.0: Store of value, Smart Contracts, IOT,
AI, Scaling solutions and Inter-chain Operability.
3 Types of Smart Contracts
•Value to value: Exchanging one cryptocurrency to
another (ICO, Atomic Swaps)
•Value to Service/Service to Value: Paying a service
with cryptocurrency. Example Smart City parking,
parcel delivery, voting for the next president.
•Service to service: Exchanging a service with another
service. Example creating a website in exchange for
free medical treatment.
Value to Value - Blockbid ICO
Value to Service - Uber Post
Service to Service - Labour exchange
Anatomy of a Smart Contract
•What is the Purpose?
•How to get Commitment from Parties Involved?
•What are the Moving Parts?
•What Constitute a Successful Outcome?
•How to Validate Successful Completion of Task?
•What Constitute an Unsuccessful Outcome?
Anatomy of a Smart Contract
•What Happens After the Deal?
•Any Punishment for Malicious Behaviour?
Upgradable Smart Contracts
Unlike typical Software design, upgrading Smart
Contracts poses many monetary and philosophical
dilemma which puts a lot of stress on Smart Contract
developers to get it right the first time.
Upgradable Smart Contracts
•Pros: Save space. Efficient code. Bug fixes.
•Cons: Break immutability law and decentralisation.
What are people going to think if you have the ability
to upgrade the business rules in the middle of an ICO?
The Dangers
● immeasurable success criteria
● Unexpected behaviours
● Unaudited code (writing test isn’t enough)
● Assets being hacked
● Assets being frozen
The Wins
● Automation: Saves time and money because there
are no middle man.
● Nothing to hid. Contract is open for the public to
scrutinise.
● Forces you to think of all possible outcomes and
things that could go wrong.
● Forces you to define all conditions and play fair.
Blockchain + SC + IOT + AI at work
● Your washing machine has a part that needs repair.
● As your machine is also a node and connected to the
internet, it is also connected to the Blockchain of the
company.
● Your machine creates a Smart Contract onchain
describing the problem and asks for repair quotes
from different vendors also connected to the same
Blockchain.
Blockchain + SC + IOT + AI at work
● Each vendor submits a quote and your Smart
Contract chooses the best quote based on some
intelligent criteria.
● The vendor comes to your house and repair the
machine.
● If Machine is happy with the repair (working for the
next 3 months), it will release the funds in the
Smart Contract to the vendor.
Conclusion
● Plan well ahead before even before starting to code.
Remember its not like building a website where you
can tweak and patch all the time.
● All conditions in the Smart Contracts must be
measurable and codable.
Conclusion
● KISS principle applies. Less ambiguity in
successful/failure conditions -> lesser logic -> lesser
code -> lesser chance to be hacked -> more smiling
faces.

Contenu connexe

Tendances

Introduction to Decentralized Finance (DeFi)
Introduction to Decentralized Finance (DeFi)Introduction to Decentralized Finance (DeFi)
Introduction to Decentralized Finance (DeFi)101 Blockchains
 
How blockchain enhance accounting profession?
How blockchain enhance accounting profession?How blockchain enhance accounting profession?
How blockchain enhance accounting profession?Celine George
 
Disadvantages of Blockchain
Disadvantages of BlockchainDisadvantages of Blockchain
Disadvantages of Blockchain101 Blockchains
 
What is A Smart Contract? | Smart Contracts Tutorial | Smart Contracts in Blo...
What is A Smart Contract? | Smart Contracts Tutorial | Smart Contracts in Blo...What is A Smart Contract? | Smart Contracts Tutorial | Smart Contracts in Blo...
What is A Smart Contract? | Smart Contracts Tutorial | Smart Contracts in Blo...Simplilearn
 
Overview Of Blockchain Technology And Architecture Powerpoint Presentation Sl...
Overview Of Blockchain Technology And Architecture Powerpoint Presentation Sl...Overview Of Blockchain Technology And Architecture Powerpoint Presentation Sl...
Overview Of Blockchain Technology And Architecture Powerpoint Presentation Sl...SlideTeam
 
Distributed Ledger Technology PowerPoint Presentation Slides
Distributed Ledger Technology PowerPoint Presentation SlidesDistributed Ledger Technology PowerPoint Presentation Slides
Distributed Ledger Technology PowerPoint Presentation SlidesSlideTeam
 
Blockcchain development services | codezeros
Blockcchain development services | codezerosBlockcchain development services | codezeros
Blockcchain development services | codezerosCodezeros
 
6 blockchain tech trends to check out before seeking blockchain consulting
6 blockchain tech trends to check out before seeking blockchain consulting6 blockchain tech trends to check out before seeking blockchain consulting
6 blockchain tech trends to check out before seeking blockchain consultingCodezeros
 
Blockchain in human resource
Blockchain in human resourceBlockchain in human resource
Blockchain in human resourceCeline George
 
Blockchain in banking sector
Blockchain in banking sectorBlockchain in banking sector
Blockchain in banking sectorDjax technologies
 
NEO DevCon 2019 - Blockchain Use Cases and Enterprise Needs
NEO DevCon 2019 - Blockchain Use Cases and Enterprise Needs NEO DevCon 2019 - Blockchain Use Cases and Enterprise Needs
NEO DevCon 2019 - Blockchain Use Cases and Enterprise Needs Pablo Junco
 
Smart contracts
Smart contractsSmart contracts
Smart contractsCoinGape
 
Blockchain Solutions for HR
Blockchain Solutions for HRBlockchain Solutions for HR
Blockchain Solutions for HREdward Lange
 
List of Top 50 Companies Using Blockchain Technology
List of Top 50 Companies Using Blockchain TechnologyList of Top 50 Companies Using Blockchain Technology
List of Top 50 Companies Using Blockchain Technology101 Blockchains
 
Various blockchain specialization domains
Various blockchain specialization domainsVarious blockchain specialization domains
Various blockchain specialization domainsBlockchain Council
 
Permissonless & Permissioned blockchain
Permissonless & Permissioned blockchainPermissonless & Permissioned blockchain
Permissonless & Permissioned blockchainVikas Pandey
 
Blockchain: A Potential Game-Changer for Life Insurance
Blockchain: A Potential Game-Changer for Life InsuranceBlockchain: A Potential Game-Changer for Life Insurance
Blockchain: A Potential Game-Changer for Life InsuranceCognizant
 
Blockchain use cases
Blockchain use casesBlockchain use cases
Blockchain use casesManav Gupta
 
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
 

Tendances (20)

Introduction to Decentralized Finance (DeFi)
Introduction to Decentralized Finance (DeFi)Introduction to Decentralized Finance (DeFi)
Introduction to Decentralized Finance (DeFi)
 
How blockchain enhance accounting profession?
How blockchain enhance accounting profession?How blockchain enhance accounting profession?
How blockchain enhance accounting profession?
 
Disadvantages of Blockchain
Disadvantages of BlockchainDisadvantages of Blockchain
Disadvantages of Blockchain
 
What is A Smart Contract? | Smart Contracts Tutorial | Smart Contracts in Blo...
What is A Smart Contract? | Smart Contracts Tutorial | Smart Contracts in Blo...What is A Smart Contract? | Smart Contracts Tutorial | Smart Contracts in Blo...
What is A Smart Contract? | Smart Contracts Tutorial | Smart Contracts in Blo...
 
Overview Of Blockchain Technology And Architecture Powerpoint Presentation Sl...
Overview Of Blockchain Technology And Architecture Powerpoint Presentation Sl...Overview Of Blockchain Technology And Architecture Powerpoint Presentation Sl...
Overview Of Blockchain Technology And Architecture Powerpoint Presentation Sl...
 
Distributed Ledger Technology PowerPoint Presentation Slides
Distributed Ledger Technology PowerPoint Presentation SlidesDistributed Ledger Technology PowerPoint Presentation Slides
Distributed Ledger Technology PowerPoint Presentation Slides
 
Blockcchain development services | codezeros
Blockcchain development services | codezerosBlockcchain development services | codezeros
Blockcchain development services | codezeros
 
6 blockchain tech trends to check out before seeking blockchain consulting
6 blockchain tech trends to check out before seeking blockchain consulting6 blockchain tech trends to check out before seeking blockchain consulting
6 blockchain tech trends to check out before seeking blockchain consulting
 
Blockchain in human resource
Blockchain in human resourceBlockchain in human resource
Blockchain in human resource
 
Blockchain in banking sector
Blockchain in banking sectorBlockchain in banking sector
Blockchain in banking sector
 
NEO DevCon 2019 - Blockchain Use Cases and Enterprise Needs
NEO DevCon 2019 - Blockchain Use Cases and Enterprise Needs NEO DevCon 2019 - Blockchain Use Cases and Enterprise Needs
NEO DevCon 2019 - Blockchain Use Cases and Enterprise Needs
 
Smart contracts
Smart contractsSmart contracts
Smart contracts
 
Blockchain Solutions for HR
Blockchain Solutions for HRBlockchain Solutions for HR
Blockchain Solutions for HR
 
List of Top 50 Companies Using Blockchain Technology
List of Top 50 Companies Using Blockchain TechnologyList of Top 50 Companies Using Blockchain Technology
List of Top 50 Companies Using Blockchain Technology
 
Various blockchain specialization domains
Various blockchain specialization domainsVarious blockchain specialization domains
Various blockchain specialization domains
 
Permissonless & Permissioned blockchain
Permissonless & Permissioned blockchainPermissonless & Permissioned blockchain
Permissonless & Permissioned blockchain
 
Blockchain: A Potential Game-Changer for Life Insurance
Blockchain: A Potential Game-Changer for Life InsuranceBlockchain: A Potential Game-Changer for Life Insurance
Blockchain: A Potential Game-Changer for Life Insurance
 
Blockchain
BlockchainBlockchain
Blockchain
 
Blockchain use cases
Blockchain use casesBlockchain use cases
Blockchain use cases
 
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
 

Similaire à Demystifying Smart Contracts

What Is A Smart Contract, And How Does It Work
What Is A Smart Contract, And How Does It Work What Is A Smart Contract, And How Does It Work
What Is A Smart Contract, And How Does It Work Blockchain Council
 
Do Smart Contract Matter To Become A Blockchain Developer
Do Smart Contract Matter To Become A Blockchain Developer Do Smart Contract Matter To Become A Blockchain Developer
Do Smart Contract Matter To Become A Blockchain Developer Blockchain Council
 
How does smart contract work ?
How does smart contract work  ?How does smart contract work  ?
How does smart contract work ?Blockchain Council
 
Smart contractjp smartcontract_about
Smart contractjp smartcontract_aboutSmart contractjp smartcontract_about
Smart contractjp smartcontract_aboutTomoaki Sato
 
Creating Smart Contract
Creating Smart ContractCreating Smart Contract
Creating Smart ContractDeepak Aryal
 
Smart contract development top considerations
Smart contract development   top considerationsSmart contract development   top considerations
Smart contract development top considerationsDevelopcoins
 
IBM Cloud Côte d'Azur Meetup - Blockchain Business Processes & Rule-based Sm...
IBM Cloud Côte d'Azur Meetup - Blockchain Business Processes &  Rule-based Sm...IBM Cloud Côte d'Azur Meetup - Blockchain Business Processes &  Rule-based Sm...
IBM Cloud Côte d'Azur Meetup - Blockchain Business Processes & Rule-based Sm...IBM France Lab
 
Can smart Contracts Exist without The Blockchain
Can smart Contracts Exist without The Blockchain Can smart Contracts Exist without The Blockchain
Can smart Contracts Exist without The Blockchain Blockchain Council
 
Siegel decentral talk
Siegel decentral talkSiegel decentral talk
Siegel decentral talkDavid Siegel
 
Blockchain smart contracts ethereum smart contract creation
Blockchain smart contracts   ethereum smart contract creationBlockchain smart contracts   ethereum smart contract creation
Blockchain smart contracts ethereum smart contract creationCodezeros
 
How Blockchain is Solving the Pain Points in the Payments Sector.pptx
How Blockchain is Solving the Pain Points in the Payments Sector.pptxHow Blockchain is Solving the Pain Points in the Payments Sector.pptx
How Blockchain is Solving the Pain Points in the Payments Sector.pptxCigniti Technologies Ltd
 
The rise of cryptocurrency & smart contract in blockchain industry
The rise of cryptocurrency & smart contract in blockchain industryThe rise of cryptocurrency & smart contract in blockchain industry
The rise of cryptocurrency & smart contract in blockchain industryMoon Technolabs Pvt. Ltd.
 
OT_JAN-2017-Issue-59-Opinion-smart-contract
OT_JAN-2017-Issue-59-Opinion-smart-contractOT_JAN-2017-Issue-59-Opinion-smart-contract
OT_JAN-2017-Issue-59-Opinion-smart-contractMichael Twomey
 
BizDay: Truck Wallet, Daimler, KI Decentralized
BizDay: Truck Wallet, Daimler, KI DecentralizedBizDay: Truck Wallet, Daimler, KI Decentralized
BizDay: Truck Wallet, Daimler, KI DecentralizedR3
 
Smart contract development (1).pdf
Smart contract development (1).pdfSmart contract development (1).pdf
Smart contract development (1).pdfBlockchainX
 
The Benefits Of Smart Contracts Development Explored And Explained
The Benefits Of Smart Contracts Development Explored And Explained The Benefits Of Smart Contracts Development Explored And Explained
The Benefits Of Smart Contracts Development Explored And Explained Flexsin
 
How blockchain startups make money?
How blockchain startups make money?How blockchain startups make money?
How blockchain startups make money?Blockchain Council
 
Blockchain & Islamic Finance
Blockchain & Islamic FinanceBlockchain & Islamic Finance
Blockchain & Islamic FinanceFarrukh Habib
 

Similaire à Demystifying Smart Contracts (20)

What Is A Smart Contract, And How Does It Work
What Is A Smart Contract, And How Does It Work What Is A Smart Contract, And How Does It Work
What Is A Smart Contract, And How Does It Work
 
Do Smart Contract Matter To Become A Blockchain Developer
Do Smart Contract Matter To Become A Blockchain Developer Do Smart Contract Matter To Become A Blockchain Developer
Do Smart Contract Matter To Become A Blockchain Developer
 
How does smart contract work ?
How does smart contract work  ?How does smart contract work  ?
How does smart contract work ?
 
Smart contractjp smartcontract_about
Smart contractjp smartcontract_aboutSmart contractjp smartcontract_about
Smart contractjp smartcontract_about
 
Creating Smart Contract
Creating Smart ContractCreating Smart Contract
Creating Smart Contract
 
Smart contract development top considerations
Smart contract development   top considerationsSmart contract development   top considerations
Smart contract development top considerations
 
Smart contracts
Smart contractsSmart contracts
Smart contracts
 
IBM Cloud Côte d'Azur Meetup - Blockchain Business Processes & Rule-based Sm...
IBM Cloud Côte d'Azur Meetup - Blockchain Business Processes &  Rule-based Sm...IBM Cloud Côte d'Azur Meetup - Blockchain Business Processes &  Rule-based Sm...
IBM Cloud Côte d'Azur Meetup - Blockchain Business Processes & Rule-based Sm...
 
Can smart Contracts Exist without The Blockchain
Can smart Contracts Exist without The Blockchain Can smart Contracts Exist without The Blockchain
Can smart Contracts Exist without The Blockchain
 
Siegel decentral talk
Siegel decentral talkSiegel decentral talk
Siegel decentral talk
 
Blockchain smart contracts ethereum smart contract creation
Blockchain smart contracts   ethereum smart contract creationBlockchain smart contracts   ethereum smart contract creation
Blockchain smart contracts ethereum smart contract creation
 
How Blockchain is Solving the Pain Points in the Payments Sector.pptx
How Blockchain is Solving the Pain Points in the Payments Sector.pptxHow Blockchain is Solving the Pain Points in the Payments Sector.pptx
How Blockchain is Solving the Pain Points in the Payments Sector.pptx
 
The rise of cryptocurrency & smart contract in blockchain industry
The rise of cryptocurrency & smart contract in blockchain industryThe rise of cryptocurrency & smart contract in blockchain industry
The rise of cryptocurrency & smart contract in blockchain industry
 
OT_JAN-2017-Issue-59-Opinion-smart-contract
OT_JAN-2017-Issue-59-Opinion-smart-contractOT_JAN-2017-Issue-59-Opinion-smart-contract
OT_JAN-2017-Issue-59-Opinion-smart-contract
 
BizDay: Truck Wallet, Daimler, KI Decentralized
BizDay: Truck Wallet, Daimler, KI DecentralizedBizDay: Truck Wallet, Daimler, KI Decentralized
BizDay: Truck Wallet, Daimler, KI Decentralized
 
Smart contract development (1).pdf
Smart contract development (1).pdfSmart contract development (1).pdf
Smart contract development (1).pdf
 
The Benefits Of Smart Contracts Development Explored And Explained
The Benefits Of Smart Contracts Development Explored And Explained The Benefits Of Smart Contracts Development Explored And Explained
The Benefits Of Smart Contracts Development Explored And Explained
 
How blockchain startups make money?
How blockchain startups make money?How blockchain startups make money?
How blockchain startups make money?
 
Blockchain & Islamic Finance
Blockchain & Islamic FinanceBlockchain & Islamic Finance
Blockchain & Islamic Finance
 
Smart contracts infographic
Smart contracts infographicSmart contracts infographic
Smart contracts infographic
 

Dernier

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
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
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
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
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
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
 
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
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
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
 
"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
 
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
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 

Dernier (20)

"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
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
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
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
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
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
 
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
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
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
 
"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
 
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
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 

Demystifying Smart Contracts

  • 1. Demystifying Smart Contracts Bernard Peh (Founder - Whale Tech)
  • 3. Why Whale Tech? Whale Tech is an Australian Based Blockchain development and education company aiming to help the companies adapt to the new Blockchain revolution.
  • 4. What is a Smart Contract? Smart: Digital automation. Disputes is enforced by code and immutable. Contract: an agreement between multiple parties which could be used as evidence should dispute between the parties arises.
  • 5. We are living in the world of contracts We exchange services everyday. We make agreements - verbal, physical or digital.
  • 6. Formula for a contract to work A contract requires 4 criteria in order to work: ● Identity verification ● Immutability Evidence ● Commitment by staking something of value to you ● Enforcement of rightful behaviour.
  • 7. Blockchain + SC = Matchmate in Heaven ● Blockchain (aka DLT) - Identity and Immutability ● Smart contracts - Staking of value and Rules enforcement
  • 8. The Blockchain Revolution “The technology of tomorrow has expired today.” •Blockchain 1.0: Store of value (Cryptocurrency). Eg Bitcoin, Ripple •Blockchain 2.0: Store of value and Smart Contracts (Distributed Apps or DAPPS in short). Eg Ethereum, EOS, Cardano, Neo •Blockchain 3.0: Store of value, Smart Contracts, IOT, AI, Scaling solutions and Inter-chain Operability.
  • 9. 3 Types of Smart Contracts •Value to value: Exchanging one cryptocurrency to another (ICO, Atomic Swaps) •Value to Service/Service to Value: Paying a service with cryptocurrency. Example Smart City parking, parcel delivery, voting for the next president. •Service to service: Exchanging a service with another service. Example creating a website in exchange for free medical treatment.
  • 10. Value to Value - Blockbid ICO
  • 11. Value to Service - Uber Post
  • 12. Service to Service - Labour exchange
  • 13. Anatomy of a Smart Contract •What is the Purpose? •How to get Commitment from Parties Involved? •What are the Moving Parts? •What Constitute a Successful Outcome? •How to Validate Successful Completion of Task? •What Constitute an Unsuccessful Outcome?
  • 14. Anatomy of a Smart Contract •What Happens After the Deal? •Any Punishment for Malicious Behaviour?
  • 15. Upgradable Smart Contracts Unlike typical Software design, upgrading Smart Contracts poses many monetary and philosophical dilemma which puts a lot of stress on Smart Contract developers to get it right the first time.
  • 16. Upgradable Smart Contracts •Pros: Save space. Efficient code. Bug fixes. •Cons: Break immutability law and decentralisation. What are people going to think if you have the ability to upgrade the business rules in the middle of an ICO?
  • 17. The Dangers ● immeasurable success criteria ● Unexpected behaviours ● Unaudited code (writing test isn’t enough) ● Assets being hacked ● Assets being frozen
  • 18. The Wins ● Automation: Saves time and money because there are no middle man. ● Nothing to hid. Contract is open for the public to scrutinise. ● Forces you to think of all possible outcomes and things that could go wrong. ● Forces you to define all conditions and play fair.
  • 19. Blockchain + SC + IOT + AI at work ● Your washing machine has a part that needs repair. ● As your machine is also a node and connected to the internet, it is also connected to the Blockchain of the company. ● Your machine creates a Smart Contract onchain describing the problem and asks for repair quotes from different vendors also connected to the same Blockchain.
  • 20. Blockchain + SC + IOT + AI at work ● Each vendor submits a quote and your Smart Contract chooses the best quote based on some intelligent criteria. ● The vendor comes to your house and repair the machine. ● If Machine is happy with the repair (working for the next 3 months), it will release the funds in the Smart Contract to the vendor.
  • 21. Conclusion ● Plan well ahead before even before starting to code. Remember its not like building a website where you can tweak and patch all the time. ● All conditions in the Smart Contracts must be measurable and codable.
  • 22. Conclusion ● KISS principle applies. Less ambiguity in successful/failure conditions -> lesser logic -> lesser code -> lesser chance to be hacked -> more smiling faces.

Notes de l'éditeur

  1. Today many people mix blockchain smart contract together but the fact is they are 2 different technologies. We’ll talk about blockchain later but we’ll be focusing on Smart contract in this seminar.
  2. A Smart contract is just a digital contract enforced digitally.
  3. You exchange money for food You exchange time and energy for knowledge You exchange your life for someone you love.
  4. Take marriage for example, its a contract between 2 person. To get married, you will need 1) Your identity card/Passport 2) Immutable proof like Witness, certificates, ring. 3) Shown commitment: Staking your time and money in your partner. 4) You can’t marry someone else unless you are divorced.
  5. We will be covering some basic terminologies like centralised and decentralised exchanges, soft and hard fork and most important, know how to use a hardware wallet.
  6. Blockchain 1.0 - 2009. (bitcoin) Blockchain 2.0 - 2014. (ethereum)
  7. Buy other tokens for Ethereum. It is sad that more and more ico are not using smart contracts for ICO because that means no transparency.
  8. Things to consider when writing smart contracts
  9. Things to consider when writing smart contracts
  10. If you are a smart contract developer, make sure all the conditions are well defined before starting to code. And always get an auditor
  11. If you are a smart contract developer, make sure all the conditions are well defined before starting to code. And always get an auditor