SlideShare une entreprise Scribd logo
1  sur  42
Blockchain 2
From Simple Financial Transactions to Smart
Contracts
Agenda
• Blockchain Reminder
• What is Blockchain 2
• Ethereum
• Ethereum Components
• SmartContracts
• How SmartContracts Work
• Ethereum Advantages
• Ethereum Disadvantages
• Smart Contract DEMO
Blockchain
Reminder
Blockchain
• Bitcoin built on blockchain
• Financial transactions
• Limited tasks
• Main Objectives to eliminate intermediaries and
unnecessary fees by making decentralized
transactions on a distributed ledger
Blockchain 2
Blockchain 2
• Still capable of doing the financial transactions
• Plus making complex operations on top of that
• Complex Operations can be built as needed and
distributed on the blockchain network
• These Complex Operations are programs . Yes a
developer can code a program and upload it to
the blockchain network
• Mainly these programs called SmartContracts
What is a Smart Contract
• Computer program code
• Capable of facilitating, executing and enforcing
the performance of an agreement
Legal Contract
• Contains Legal Language (written by Lawyers)
• Heavily rely on third parties for enforcement
• Enforcement is very time consuming
• Very Ambiguous
• Lengthy and Expensive
• If no fulfillment by any of the parties - going to
court
Smart Contract Definition
• Program Created by Computer Programmers
• Written in a digital code (programing language)
• States the Rules
• States the Obligations
• Automatically Executed
Smart Contract Characteristics
• Deterministic
Whoever runs it gives the same value
• Immutable
Once deployed can’t be changed
• Verifiable
Gets unique address and can be verified by the interested
parties before using it
Smart Contract Features
• Speed (Near Real Time)
• Accurate
• Low Risk
• Fewer Intermediaries (No need for escrow)
• Lower Cost . Which leads to New Business
Models
Smart Contract Components
• Code
Where you code the logic of having inputs, fulfilling rules
and taking actions
• Distributed Ledger
Similar to a transaction the smart contract is encrypted and
distributed to contributors with a machine (decentralized)
• Execution
Once the contract is executed it is distributed on a ledger
and monitor the compliance to take action
Ethereum
What is Ethereum
At its simplest, Ethereum is an open software platform
based on blockchain technology that enables developers to
build and deploy decentralized applications
the Ethereum blockchain focuses on running the programming
code of any decentralized application
“Ethereum is a decentralized platform that runs smart contracts:
applications that run exactly as programmed without any possibility
of downtime, censorship, fraud or third party interference. These
Ethereum Components
• Ethereum Virtual Machine (EVM)
• Swarm - similar to BitTorrent app split the files into chunks but
incentivized by ether
• Whisper - secure messaging protocol between nodes
• Solidity - javascript like programing language to write smart
contacts
• Bitcoin blockchain has addresses
• Ethereum has accounts
• Account that only store ETH (Externally Owned Accounts -
EOA)
• Account stores ETH and Program (SC) - once the SC
uploaded to the network waits to be activated. The SC got
activated when sending ETH into it
• Once the Smart Contract is activated, it keeps monitoring for
events, milestones or conditions to occur
Bitcoin VS Ethereum
Bitcoin
Global network
of computers
used mainly for
processing
transactions
No
Programming
Language
Update
chain every
~10 min
BTC
21 M Supply
Original
Crypto
Currency
(Financial by
Design)
Ethereum
Platform with
programing
language to
create
programs (SC)
to create DApps
DAO
(150M ETH Held)
$50M stolen
Reset the Chain
before the 50M
were stolen
Update the
chain every
~30 sec
ETH
No Limit
Designed for
computer
power
payments
Ethereum
Classic
Continued
without reset
the chain
Code is LAW
without
intermediary
Smaller
Community
Smaller
Computing
Power
ETH Classic
DApps
• Decentralized Apps
• No Central Server
Centralized
App
Installed and Run
on Central Server
Hacked - all
data
Failure - entire
app is down
Sensorship -
can be blocked
Computer
Power
(more users -
slower)
DApps
On Multiple
Computers
Has to Hack
Majority
Failure - connect
to another
computer
To block - needs
to be blocked
from the majority
Computer
power
distributed
Blockchain
DApps
Operate Similar
to DApps Open Source
Run on Blockchain
allows Additional
Functionality
It has a token to
cover the cost of
computer power
Changes to the app
decided by the
majority - controlled
by the Majority
What is a smart contract
Smart contract is just a phrase used to describe
computer code that can facilitate the exchange of
money, content, property, shares, or anything of value
When running on the blockchain a smart contract
becomes like a self-operating computer program that
automatically executes when specific conditions are met
Written in Solidity Programming Language and runs
on the Ethereum virtual Machine EVM on ETH
How Smart Contracts Work
How Smart Contracts Work
How Smart Contracts Work
• Connected to ETH Crypto Currency
• Terms of the contract contains
• Payment Amount
• Compensation in case of failure to complete the
terms
• Payment would sent to the smart contract not the
seller
• Once the terms are fulfilled the money sent to the
seller and the ownership sent to the buyer
• If the terms failed to be fulfilled / expired the smart
contract rejects the transaction and sends the money
back to the buyer and the ownership to the seller
Uber VS Ether DApp
Uber
Save Credit Card info
within Uber
Uber Authorizes the
credit card for a
payment
When you take a car
to start a contract to
pay a certain amount
of money based on
your distance you
travel
When you finish the
trip the contract
executes and your
credit card is
automatically charged
CC takes fees for the
transaction
Ethereum DApp
You have an account
on ethereum network
which can send and
receive ETH (or
Wallet)
Smart Contract has
the driver and rider
parties and has clear
terms on the payment.
Once the ride starts,
the money sent to the
smart contract
Once the ride is done and if
the terms are fulfilled, smart
contract sends the money to
the driver and maybe some
If the ride terms fails, then
the smart contract returns
the money to the rider
The execution of the SC is
being compensated
New Methods for Funding
• Ethereum gave companies and developers to fund
while their growth
• Initial Coin Offering - possible before Ethereum
• Allows companies to develop applications and sells
tokens or coins that can be used in the application
• ICO before ethereum linked to the popularity of the
crypto currency
• ICO with ethereal linked to the popularity of the
application . If the application becomes popular and
widely used , then theoretically the tokens should
increase in value
• Companies can have funds without requiring Loans
or Venture Capitals Funding
Benefits of Ethereum
• Smart Contracts
Because smart contracts run on the blockchain, they run exactly as programmed
without any possibility of censorship, downtime, fraud or third party interference
• Greater ease and lower costs
• Ease of development and create applications
• Immutability – A third party cannot make any changes to data.
• Corruption & tamper proof – Apps are based on a network formed around the
principle of consensus, making censorship impossible.
• Secure – With no central point of failure and secured using cryptography,
applications are well protected against hacking attacks and fraudulent activities.
• Zero downtime – Apps never go down and can never be switched off.
Benefits of Ethereum
Disadvantages and Risks of Ethereum
• Not designed for real world payments
• New Technology - Still needs more time to be proven
• Badly written smart contract (written by humans) may
lead to exploits and steeling money - cant be argued!
obtaining a network consensus and rewriting the
underlying code
Disadvantages and Risks of Ethereum
• No free Applications
While social networks pays for hosting / computing and
users don’t however the personal data is the product. DApps
controlled by the users and it will be difficult to convince
users to pay for making any action on a decentralized social
network like / uploading images … etc
• ETH may not increase in value even if the application
gains popularity (speculators).
Speculators normally they don’t intend using the coins in the
app. The value of the token / point mainly depends on the
demand and supply of the token. High Supply depreciate the
value , hight demand appreciate the value
Disadvantages and Risks of Ethereum
• Not designed for real world payments
• ETH may not increase in value even if the
application gains popularity (speculators)
• Speculators normally they don’t intend using the
coins in the app
• The value of the token / point mainly depends on
the demand and supply of the token. High Supply
depreciate the value , hight demand appreciate
the value
Skyline
especially if connected to military
and government systems
GAS
• Internal pricing for running a smart contract
• Decouple from unit of ETH for computing and
from market value
• Originator of the transaction sets the price of the
GAS upfront
Wallet Types
Online Wallet/Web Wallet
These are wallets accessible over the internet with a web browser. These wallets are simple to set up and use for
cryptocurrency beginners, yet vulnerable to attacks.
Mobile Wallet
These are mobile software applications designed to hold cryptocurrencies. It’s usually developed to work with devices
that run Android and iOS operating systems. These wallets make cryptocurrency transactions easy, most especially “on
the go”.
Desktop Wallets
Also software applications for personal computers. This is to some extent considered more secure than the other two
types mentioned above (web & mobile wallets). Though these wallets create private keys offline, it’s necessary to
connect to the internet to have the software updated to display your actual fund (if any).
Hardware Wallets
These are special digital devices (called wallets), great for storing large cryptocurrencies you don’t need for everyday
use. Of course, you can also use it for daily use, it all depends on you. These wallets offer more security on
cryptocurrencies stored in them than all other types of wallets.
MultiSig Wallets
• Your multi-sig wallet is a smart contract living on the blockchain!
• Once the multi-sig wallet has been deployed, Ether can be sent to it just
like to any other Ethereum address.
• The weird bit is that they each have to use a normal wallet to talk to the
multi-sig wallet.
• Before creating a multisig wallet - you need to
• A list of people who are allowed to do things (Tom, John and Harry)
• Rules on how many of those people have to agree before it happens
• Once Tom has submitted -
submitTransaction(0x31EFd75bc0….fDab6a3F22,1000000000
,) he will get a message back from his wallet with a number or hash
code which is the transactionID. Tom has to communicate this
transactionID to Dick or Harry to get them to confirm it.
• Harry or John will confirm the transaction - function
confirmTransaction(uint transactionId)
DAO
• Decentralized Autonomous Organization
The government who votes for the contracts
Public and Transparent
When a transaction is placed, the DAO checks if A has
balance , withdraw and then set your new balance
DAO Attack !!
Multiple Transactions happened at the same time
Checks on the balance, it is valid! make a
withdraw then update the balance
Deposit the new amount and repeat
More $50M were withdrawn from the Ethereum
platform
Ethereum is moving to Proof Of Stake
Ethereum is moving to Proof Of Stake
• Lowers the overall energy and monetary cost
• No ASIC advantage
• Makes 51% attack harder: 51% attack happens when a group of
miners gain more than 50% of the world’s hashing power. Using
proof of stake negates this attack.
• Malicious-free validators: Any validator who has their funds locked
up in the blockchain would make sure that they are not adding any
wrong or malicious blocks to the chain, because that would mean
their entire stake invested would be taken away from them.
• Block creation: Makes the creation of newer blocks and the entire
process faster.
• Scalability: Makes the blockchain scalable by introducing the
concept of “sharding”
Writing a smart
contract DEMO
https://youtu.be/cDziE9ctFS0
Referenceshttps://blockgeeks.com/guides/ethereum/
https://www.amazon.com/Ethereum-Understanding-Blockchain-Decentralized-
Cryptocurrencies-ebook/dp/B078683DXR
https://www.slideshare.net/JrmeKehrli/blockchain-20-69472625
https://blockgeeks.com/guides/ethereum-developer/
https://blockgeeks.com/guides/decentralized-applications/
Thank You !
Qais Ammari
qais.ammari@triphop.com

Contenu connexe

Tendances

Learning Solidity
Learning SolidityLearning Solidity
Learning SolidityArnold Pham
 
An Investor's Guide to Web3 / Crypto / Blockchain
An Investor's Guide to Web3 / Crypto / BlockchainAn Investor's Guide to Web3 / Crypto / Blockchain
An Investor's Guide to Web3 / Crypto / BlockchainBernard Leong
 
A Zero-Knowledge Proof: Improving Privacy on a Blockchain
A Zero-Knowledge Proof:  Improving Privacy on a BlockchainA Zero-Knowledge Proof:  Improving Privacy on a Blockchain
A Zero-Knowledge Proof: Improving Privacy on a BlockchainAltoros
 
What is an nft the informative guide for beginners in 2022
What is an nft  the informative guide for beginners in 2022What is an nft  the informative guide for beginners in 2022
What is an nft the informative guide for beginners in 2022Moon Technolabs Pvt. Ltd.
 
What are NFT's, anyhow?
What are NFT's, anyhow?What are NFT's, anyhow?
What are NFT's, anyhow?Dayna Young
 
Introduction to Blockchain and Smart Contracts
Introduction to Blockchain and Smart ContractsIntroduction to Blockchain and Smart Contracts
Introduction to Blockchain and Smart ContractsTechracers
 
Fixed Income Trading System Architecture
Fixed Income Trading System ArchitectureFixed Income Trading System Architecture
Fixed Income Trading System ArchitectureKhader Shaik
 
Blockchain consensus algorithms
Blockchain consensus algorithmsBlockchain consensus algorithms
Blockchain consensus algorithmsAnurag Dashputre
 
Blockchain, DLT, Tokens and ICO Introduction Course
Blockchain, DLT, Tokens and ICO Introduction CourseBlockchain, DLT, Tokens and ICO Introduction Course
Blockchain, DLT, Tokens and ICO Introduction CourseJean-Marc Seigneur
 
An Introduction to Blockchain Technology
An Introduction to Blockchain Technology An Introduction to Blockchain Technology
An Introduction to Blockchain Technology Niuversity
 
Ethereum in a nutshell
Ethereum in a nutshellEthereum in a nutshell
Ethereum in a nutshellDaniel Chan
 
Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...
Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...
Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...Melanie Swan
 
Blockchain Training | Blockchain Tutorial for Beginners | Blockchain Technolo...
Blockchain Training | Blockchain Tutorial for Beginners | Blockchain Technolo...Blockchain Training | Blockchain Tutorial for Beginners | Blockchain Technolo...
Blockchain Training | Blockchain Tutorial for Beginners | Blockchain Technolo...Edureka!
 
Blockchain, Ethereum and ConsenSys
Blockchain, Ethereum and ConsenSysBlockchain, Ethereum and ConsenSys
Blockchain, Ethereum and ConsenSysWithTheBest
 
Blockchain - HyperLedger Fabric
Blockchain - HyperLedger FabricBlockchain - HyperLedger Fabric
Blockchain - HyperLedger FabricAraf Karsh Hamid
 

Tendances (20)

Learning Solidity
Learning SolidityLearning Solidity
Learning Solidity
 
Ethereum
EthereumEthereum
Ethereum
 
Ethereum
EthereumEthereum
Ethereum
 
An Investor's Guide to Web3 / Crypto / Blockchain
An Investor's Guide to Web3 / Crypto / BlockchainAn Investor's Guide to Web3 / Crypto / Blockchain
An Investor's Guide to Web3 / Crypto / Blockchain
 
A Zero-Knowledge Proof: Improving Privacy on a Blockchain
A Zero-Knowledge Proof:  Improving Privacy on a BlockchainA Zero-Knowledge Proof:  Improving Privacy on a Blockchain
A Zero-Knowledge Proof: Improving Privacy on a Blockchain
 
What is an nft the informative guide for beginners in 2022
What is an nft  the informative guide for beginners in 2022What is an nft  the informative guide for beginners in 2022
What is an nft the informative guide for beginners in 2022
 
What are NFT's, anyhow?
What are NFT's, anyhow?What are NFT's, anyhow?
What are NFT's, anyhow?
 
Ethereum-Cryptocurrency (All about Ethereum)
Ethereum-Cryptocurrency (All about Ethereum) Ethereum-Cryptocurrency (All about Ethereum)
Ethereum-Cryptocurrency (All about Ethereum)
 
Blockchain
BlockchainBlockchain
Blockchain
 
Introduction to Blockchain and Smart Contracts
Introduction to Blockchain and Smart ContractsIntroduction to Blockchain and Smart Contracts
Introduction to Blockchain and Smart Contracts
 
Fixed Income Trading System Architecture
Fixed Income Trading System ArchitectureFixed Income Trading System Architecture
Fixed Income Trading System Architecture
 
Blockchain consensus algorithms
Blockchain consensus algorithmsBlockchain consensus algorithms
Blockchain consensus algorithms
 
Blockchain, DLT, Tokens and ICO Introduction Course
Blockchain, DLT, Tokens and ICO Introduction CourseBlockchain, DLT, Tokens and ICO Introduction Course
Blockchain, DLT, Tokens and ICO Introduction Course
 
An Introduction to Blockchain Technology
An Introduction to Blockchain Technology An Introduction to Blockchain Technology
An Introduction to Blockchain Technology
 
Ethereum in a nutshell
Ethereum in a nutshellEthereum in a nutshell
Ethereum in a nutshell
 
Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...
Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...
Bitcoin Protocols 1.0 and 2.0 Explained in the Series: Blockchain: The Inform...
 
Blockchain Training | Blockchain Tutorial for Beginners | Blockchain Technolo...
Blockchain Training | Blockchain Tutorial for Beginners | Blockchain Technolo...Blockchain Training | Blockchain Tutorial for Beginners | Blockchain Technolo...
Blockchain Training | Blockchain Tutorial for Beginners | Blockchain Technolo...
 
Blockchain, Ethereum and ConsenSys
Blockchain, Ethereum and ConsenSysBlockchain, Ethereum and ConsenSys
Blockchain, Ethereum and ConsenSys
 
Blockchain - HyperLedger Fabric
Blockchain - HyperLedger FabricBlockchain - HyperLedger Fabric
Blockchain - HyperLedger Fabric
 
Bitcoin
BitcoinBitcoin
Bitcoin
 

Similaire à Ethereum (Blockchain Network)

Block chain - Smart contacts.pptx
Block chain - Smart contacts.pptxBlock chain - Smart contacts.pptx
Block chain - Smart contacts.pptxshraddhaphirke1
 
What is Ethereum? – A Complete Guide to Ethereum for Beginners
What is Ethereum? – A Complete Guide to Ethereum for BeginnersWhat is Ethereum? – A Complete Guide to Ethereum for Beginners
What is Ethereum? – A Complete Guide to Ethereum for BeginnersCoinGape
 
Blockchain Technology.ppt
Blockchain Technology.pptBlockchain Technology.ppt
Blockchain Technology.pptssuserc17add
 
Blockchain Technology
Blockchain TechnologyBlockchain Technology
Blockchain TechnologyHikaru34
 
Ethereum Blockchain
Ethereum BlockchainEthereum Blockchain
Ethereum BlockchainXnews
 
Blockchain & decentralized finance (defi) | How blockchain technology is coup...
Blockchain & decentralized finance (defi) | How blockchain technology is coup...Blockchain & decentralized finance (defi) | How blockchain technology is coup...
Blockchain & decentralized finance (defi) | How blockchain technology is coup...Nidhi choraria
 
Introduction to Ethereum.pptx
Introduction to Ethereum.pptxIntroduction to Ethereum.pptx
Introduction to Ethereum.pptxNickjohn33
 
blockchain technology note-unit-5-notes.pdf for sppu engineering students
blockchain technology note-unit-5-notes.pdf for sppu engineering studentsblockchain technology note-unit-5-notes.pdf for sppu engineering students
blockchain technology note-unit-5-notes.pdf for sppu engineering studentsimranakhtar83
 
Ethereum And Challenges In Building Its Infrastructure
Ethereum And Challenges In Building Its Infrastructure Ethereum And Challenges In Building Its Infrastructure
Ethereum And Challenges In Building Its Infrastructure Blockchain Council
 
The JavaScript toolset for development on Ethereum
The JavaScript toolset for development on EthereumThe JavaScript toolset for development on Ethereum
The JavaScript toolset for development on EthereumGreeceJS
 
Javascript toolset for Ethereum Smart Contract development
Javascript toolset for Ethereum Smart Contract developmentJavascript toolset for Ethereum Smart Contract development
Javascript toolset for Ethereum Smart Contract developmentBugSense
 
Top 7 Benefits Of Using Blockchain Technology For Mobile Apps
Top 7 Benefits Of Using Blockchain Technology For Mobile AppsTop 7 Benefits Of Using Blockchain Technology For Mobile Apps
Top 7 Benefits Of Using Blockchain Technology For Mobile AppsBlockchain Council
 
YEMChain vs. Ethereum: A Comprehensive Comparison
YEMChain vs. Ethereum: A Comprehensive ComparisonYEMChain vs. Ethereum: A Comprehensive Comparison
YEMChain vs. Ethereum: A Comprehensive ComparisonSteve Hodgkiss
 
Understanding blockchain
Understanding blockchainUnderstanding blockchain
Understanding blockchainPriyab Satoshi
 

Similaire à Ethereum (Blockchain Network) (20)

Chapter 3.pptx
Chapter 3.pptxChapter 3.pptx
Chapter 3.pptx
 
Block chain - Smart contacts.pptx
Block chain - Smart contacts.pptxBlock chain - Smart contacts.pptx
Block chain - Smart contacts.pptx
 
What is Ethereum? – A Complete Guide to Ethereum for Beginners
What is Ethereum? – A Complete Guide to Ethereum for BeginnersWhat is Ethereum? – A Complete Guide to Ethereum for Beginners
What is Ethereum? – A Complete Guide to Ethereum for Beginners
 
What is ethereum
What is ethereumWhat is ethereum
What is ethereum
 
Blockchain Technology.ppt
Blockchain Technology.pptBlockchain Technology.ppt
Blockchain Technology.ppt
 
Blockchain Technology
Blockchain TechnologyBlockchain Technology
Blockchain Technology
 
Ethereum
EthereumEthereum
Ethereum
 
Ethereum Blockchain
Ethereum BlockchainEthereum Blockchain
Ethereum Blockchain
 
Blockchain & decentralized finance (defi) | How blockchain technology is coup...
Blockchain & decentralized finance (defi) | How blockchain technology is coup...Blockchain & decentralized finance (defi) | How blockchain technology is coup...
Blockchain & decentralized finance (defi) | How blockchain technology is coup...
 
Introduction to Ethereum.pptx
Introduction to Ethereum.pptxIntroduction to Ethereum.pptx
Introduction to Ethereum.pptx
 
blockchain technology note-unit-5-notes.pdf for sppu engineering students
blockchain technology note-unit-5-notes.pdf for sppu engineering studentsblockchain technology note-unit-5-notes.pdf for sppu engineering students
blockchain technology note-unit-5-notes.pdf for sppu engineering students
 
Ethereum And Challenges In Building Its Infrastructure
Ethereum And Challenges In Building Its Infrastructure Ethereum And Challenges In Building Its Infrastructure
Ethereum And Challenges In Building Its Infrastructure
 
The JavaScript toolset for development on Ethereum
The JavaScript toolset for development on EthereumThe JavaScript toolset for development on Ethereum
The JavaScript toolset for development on Ethereum
 
Javascript toolset for Ethereum Smart Contract development
Javascript toolset for Ethereum Smart Contract developmentJavascript toolset for Ethereum Smart Contract development
Javascript toolset for Ethereum Smart Contract development
 
How to design, code, deploy and execute a smart contract
How to design, code, deploy and execute a smart contractHow to design, code, deploy and execute a smart contract
How to design, code, deploy and execute a smart contract
 
Top 7 Benefits Of Using Blockchain Technology For Mobile Apps
Top 7 Benefits Of Using Blockchain Technology For Mobile AppsTop 7 Benefits Of Using Blockchain Technology For Mobile Apps
Top 7 Benefits Of Using Blockchain Technology For Mobile Apps
 
YEMChain vs. Ethereum: A Comprehensive Comparison
YEMChain vs. Ethereum: A Comprehensive ComparisonYEMChain vs. Ethereum: A Comprehensive Comparison
YEMChain vs. Ethereum: A Comprehensive Comparison
 
Evaluation of Ethereum
Evaluation of Ethereum Evaluation of Ethereum
Evaluation of Ethereum
 
Understanding blockchain
Understanding blockchainUnderstanding blockchain
Understanding blockchain
 
Block chain technology
Block chain technology Block chain technology
Block chain technology
 

Dernier

"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
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
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
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
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
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
 
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
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
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
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 

Dernier (20)

"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
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
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
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
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
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
 
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
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
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
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 

Ethereum (Blockchain Network)

  • 1. Blockchain 2 From Simple Financial Transactions to Smart Contracts
  • 2. Agenda • Blockchain Reminder • What is Blockchain 2 • Ethereum • Ethereum Components • SmartContracts • How SmartContracts Work • Ethereum Advantages • Ethereum Disadvantages • Smart Contract DEMO
  • 4. Blockchain • Bitcoin built on blockchain • Financial transactions • Limited tasks • Main Objectives to eliminate intermediaries and unnecessary fees by making decentralized transactions on a distributed ledger
  • 6. Blockchain 2 • Still capable of doing the financial transactions • Plus making complex operations on top of that • Complex Operations can be built as needed and distributed on the blockchain network • These Complex Operations are programs . Yes a developer can code a program and upload it to the blockchain network • Mainly these programs called SmartContracts
  • 7. What is a Smart Contract • Computer program code • Capable of facilitating, executing and enforcing the performance of an agreement
  • 8. Legal Contract • Contains Legal Language (written by Lawyers) • Heavily rely on third parties for enforcement • Enforcement is very time consuming • Very Ambiguous • Lengthy and Expensive • If no fulfillment by any of the parties - going to court
  • 9. Smart Contract Definition • Program Created by Computer Programmers • Written in a digital code (programing language) • States the Rules • States the Obligations • Automatically Executed
  • 10. Smart Contract Characteristics • Deterministic Whoever runs it gives the same value • Immutable Once deployed can’t be changed • Verifiable Gets unique address and can be verified by the interested parties before using it
  • 11. Smart Contract Features • Speed (Near Real Time) • Accurate • Low Risk • Fewer Intermediaries (No need for escrow) • Lower Cost . Which leads to New Business Models
  • 12. Smart Contract Components • Code Where you code the logic of having inputs, fulfilling rules and taking actions • Distributed Ledger Similar to a transaction the smart contract is encrypted and distributed to contributors with a machine (decentralized) • Execution Once the contract is executed it is distributed on a ledger and monitor the compliance to take action
  • 14. What is Ethereum At its simplest, Ethereum is an open software platform based on blockchain technology that enables developers to build and deploy decentralized applications the Ethereum blockchain focuses on running the programming code of any decentralized application “Ethereum is a decentralized platform that runs smart contracts: applications that run exactly as programmed without any possibility of downtime, censorship, fraud or third party interference. These
  • 15.
  • 16. Ethereum Components • Ethereum Virtual Machine (EVM) • Swarm - similar to BitTorrent app split the files into chunks but incentivized by ether • Whisper - secure messaging protocol between nodes • Solidity - javascript like programing language to write smart contacts • Bitcoin blockchain has addresses • Ethereum has accounts • Account that only store ETH (Externally Owned Accounts - EOA) • Account stores ETH and Program (SC) - once the SC uploaded to the network waits to be activated. The SC got activated when sending ETH into it • Once the Smart Contract is activated, it keeps monitoring for events, milestones or conditions to occur
  • 17. Bitcoin VS Ethereum Bitcoin Global network of computers used mainly for processing transactions No Programming Language Update chain every ~10 min BTC 21 M Supply Original Crypto Currency (Financial by Design) Ethereum Platform with programing language to create programs (SC) to create DApps DAO (150M ETH Held) $50M stolen Reset the Chain before the 50M were stolen Update the chain every ~30 sec ETH No Limit Designed for computer power payments Ethereum Classic Continued without reset the chain Code is LAW without intermediary Smaller Community Smaller Computing Power ETH Classic
  • 18. DApps • Decentralized Apps • No Central Server Centralized App Installed and Run on Central Server Hacked - all data Failure - entire app is down Sensorship - can be blocked Computer Power (more users - slower) DApps On Multiple Computers Has to Hack Majority Failure - connect to another computer To block - needs to be blocked from the majority Computer power distributed Blockchain DApps Operate Similar to DApps Open Source Run on Blockchain allows Additional Functionality It has a token to cover the cost of computer power Changes to the app decided by the majority - controlled by the Majority
  • 19. What is a smart contract Smart contract is just a phrase used to describe computer code that can facilitate the exchange of money, content, property, shares, or anything of value When running on the blockchain a smart contract becomes like a self-operating computer program that automatically executes when specific conditions are met Written in Solidity Programming Language and runs on the Ethereum virtual Machine EVM on ETH
  • 20.
  • 23. How Smart Contracts Work • Connected to ETH Crypto Currency • Terms of the contract contains • Payment Amount • Compensation in case of failure to complete the terms • Payment would sent to the smart contract not the seller • Once the terms are fulfilled the money sent to the seller and the ownership sent to the buyer • If the terms failed to be fulfilled / expired the smart contract rejects the transaction and sends the money back to the buyer and the ownership to the seller
  • 24. Uber VS Ether DApp Uber Save Credit Card info within Uber Uber Authorizes the credit card for a payment When you take a car to start a contract to pay a certain amount of money based on your distance you travel When you finish the trip the contract executes and your credit card is automatically charged CC takes fees for the transaction Ethereum DApp You have an account on ethereum network which can send and receive ETH (or Wallet) Smart Contract has the driver and rider parties and has clear terms on the payment. Once the ride starts, the money sent to the smart contract Once the ride is done and if the terms are fulfilled, smart contract sends the money to the driver and maybe some If the ride terms fails, then the smart contract returns the money to the rider The execution of the SC is being compensated
  • 25. New Methods for Funding • Ethereum gave companies and developers to fund while their growth • Initial Coin Offering - possible before Ethereum • Allows companies to develop applications and sells tokens or coins that can be used in the application • ICO before ethereum linked to the popularity of the crypto currency • ICO with ethereal linked to the popularity of the application . If the application becomes popular and widely used , then theoretically the tokens should increase in value • Companies can have funds without requiring Loans or Venture Capitals Funding
  • 26. Benefits of Ethereum • Smart Contracts Because smart contracts run on the blockchain, they run exactly as programmed without any possibility of censorship, downtime, fraud or third party interference • Greater ease and lower costs • Ease of development and create applications • Immutability – A third party cannot make any changes to data. • Corruption & tamper proof – Apps are based on a network formed around the principle of consensus, making censorship impossible. • Secure – With no central point of failure and secured using cryptography, applications are well protected against hacking attacks and fraudulent activities. • Zero downtime – Apps never go down and can never be switched off.
  • 28. Disadvantages and Risks of Ethereum • Not designed for real world payments • New Technology - Still needs more time to be proven • Badly written smart contract (written by humans) may lead to exploits and steeling money - cant be argued! obtaining a network consensus and rewriting the underlying code
  • 29. Disadvantages and Risks of Ethereum • No free Applications While social networks pays for hosting / computing and users don’t however the personal data is the product. DApps controlled by the users and it will be difficult to convince users to pay for making any action on a decentralized social network like / uploading images … etc • ETH may not increase in value even if the application gains popularity (speculators). Speculators normally they don’t intend using the coins in the app. The value of the token / point mainly depends on the demand and supply of the token. High Supply depreciate the value , hight demand appreciate the value
  • 30. Disadvantages and Risks of Ethereum • Not designed for real world payments • ETH may not increase in value even if the application gains popularity (speculators) • Speculators normally they don’t intend using the coins in the app • The value of the token / point mainly depends on the demand and supply of the token. High Supply depreciate the value , hight demand appreciate the value
  • 31. Skyline especially if connected to military and government systems
  • 32. GAS • Internal pricing for running a smart contract • Decouple from unit of ETH for computing and from market value • Originator of the transaction sets the price of the GAS upfront
  • 33. Wallet Types Online Wallet/Web Wallet These are wallets accessible over the internet with a web browser. These wallets are simple to set up and use for cryptocurrency beginners, yet vulnerable to attacks. Mobile Wallet These are mobile software applications designed to hold cryptocurrencies. It’s usually developed to work with devices that run Android and iOS operating systems. These wallets make cryptocurrency transactions easy, most especially “on the go”. Desktop Wallets Also software applications for personal computers. This is to some extent considered more secure than the other two types mentioned above (web & mobile wallets). Though these wallets create private keys offline, it’s necessary to connect to the internet to have the software updated to display your actual fund (if any). Hardware Wallets These are special digital devices (called wallets), great for storing large cryptocurrencies you don’t need for everyday use. Of course, you can also use it for daily use, it all depends on you. These wallets offer more security on cryptocurrencies stored in them than all other types of wallets.
  • 34. MultiSig Wallets • Your multi-sig wallet is a smart contract living on the blockchain! • Once the multi-sig wallet has been deployed, Ether can be sent to it just like to any other Ethereum address. • The weird bit is that they each have to use a normal wallet to talk to the multi-sig wallet. • Before creating a multisig wallet - you need to • A list of people who are allowed to do things (Tom, John and Harry) • Rules on how many of those people have to agree before it happens • Once Tom has submitted - submitTransaction(0x31EFd75bc0….fDab6a3F22,1000000000 ,) he will get a message back from his wallet with a number or hash code which is the transactionID. Tom has to communicate this transactionID to Dick or Harry to get them to confirm it. • Harry or John will confirm the transaction - function confirmTransaction(uint transactionId)
  • 35. DAO • Decentralized Autonomous Organization The government who votes for the contracts Public and Transparent When a transaction is placed, the DAO checks if A has balance , withdraw and then set your new balance
  • 36. DAO Attack !! Multiple Transactions happened at the same time Checks on the balance, it is valid! make a withdraw then update the balance Deposit the new amount and repeat More $50M were withdrawn from the Ethereum platform
  • 37. Ethereum is moving to Proof Of Stake
  • 38. Ethereum is moving to Proof Of Stake • Lowers the overall energy and monetary cost • No ASIC advantage • Makes 51% attack harder: 51% attack happens when a group of miners gain more than 50% of the world’s hashing power. Using proof of stake negates this attack. • Malicious-free validators: Any validator who has their funds locked up in the blockchain would make sure that they are not adding any wrong or malicious blocks to the chain, because that would mean their entire stake invested would be taken away from them. • Block creation: Makes the creation of newer blocks and the entire process faster. • Scalability: Makes the blockchain scalable by introducing the concept of “sharding”
  • 42. Thank You ! Qais Ammari qais.ammari@triphop.com