SlideShare a Scribd company logo
1 of 15
Download to read offline
Copyright © Blockchain Council www.blockchain-council.org 1
Copyright © Blockchain Council www.blockchain-council.org
How to run ethereum smart contracts on
Hyperledger fabric?
The Hyperledger Project Executive Director, Brian Behlendorf has maintained
from the inception of the project that it’s just wrong to view the Hyperledger and
Ethereum communities as competitive. Ethereum is a public blockchain that allows
anyone to join the network, by mining or running a node.
2
Copyright © Blockchain Council www.blockchain-council.org
On the other hand, Hyperledger is beneficial blockchain framework that is focusing
on bringing the benefits of blockchain technology to businesses in a controlled
manner. Let’s take a look at some of the critical differences between the two
blockchains and see how combining the two can accomplish tasks that were
previously impossible.
3
Copyright © Blockchain Council www.blockchain-council.org
Ethereum V/S Hyperledger Fabric
All blockchains are not created the same. Public blockchains such as Bitcoin and
Ethereum are decentralized ledgers that anyone in the world can access and use
for transferring digital assets. However, there is a price to pay for the decentralized
processing of transactions in the form of slow transactions and a large number of
wasteful computations.
4
Copyright © Blockchain Council www.blockchain-council.org
On the other hand, a private blockchain created using the Hyperledger Fabric
gives limited access to trusted users, typically those who were involved in the
creation of the private blockchain. As a result, such blockchains have much higher
throughput and therefore can perform different order of magnitudes better than
public blockchains.
5
Copyright © Blockchain Council www.blockchain-council.org
The best of both worlds : Hyperledger Burrow
Burrow is a permissioned smart contract machine developed by Monax which
executes Ethereum Virtual Machine (EVM) smart contract code on a permissioned
virtual machine such as Hyperledger. Ethereum smart contracts are typically
written in Solidity or Viper and would require no modification to be deployed on the
Burrow smart contract machine.
6
Copyright © Blockchain Council www.blockchain-council.org
Monax CEO Casey Kuhlman claims that Burrow provides a modular blockchain
client such as Fabric with an intelligent contract interpreter that can handle EVM
code. Burrow relies on three main components to execute the EVM smart contract
code: the consensus engine, the interpreter and the application engine.
7
Copyright © Blockchain Council www.blockchain-council.org
Together, these components bring permissions to Ethereum Blockchain and
before running any code, make sure that necessary permissions have been
granted. Such a combination is useful as it can give public blockchains the
security and reliability of the Ethereum public blockchain without the additional
overheads.
8
Copyright © Blockchain Council www.blockchain-council.org
How to deploy EVM smart contracts on Burrow?
Before you’re ready to deploy your smart contract code on Hyperledger, there are
a few prerequisites that you must get out of the way. They include signing up for
IBM cloud and setting up the IBM cloud command line interface. You would also
require docker and Kubectl.
9
Copyright © Blockchain Council www.blockchain-council.org
Once you have the basics set up, you need to access the IBM Cloud Dashboard
and sign in. After that, you need to go to the IBM Container Service and create a
Cluster. After the cluster is set up, you need to find its worker nodes and save their
public IP address as it will be required later. You are now ready to interact with
your cluster using Kubectl.
10
Copyright © Blockchain Council www.blockchain-council.org
Now, deploying the EVM smart contract to the Fabric VM requires the following
four steps:
· Clone the container service repository. It can be done by running the given
command in your working directory.
– $ git clone
https://github.com/SaifRehman/fabric-evm-ibm-container-servi
ce.git
·
11
Copyright © Blockchain Council www.blockchain-council.org
Navigate to the container service directory which contains the scripts required to
deploy the EVM code.
– $ cd fabric-evm–ibm-container-service
· Navigate to script folder.
– $ cd cs-offerings/scripts
12
Copyright © Blockchain Council www.blockchain-council.org
· Deploy to Fabric with an EVM plugin to the IBM Container Service.
– $ ./create_all.sh
This runs the Ethereum Virtual Machine on Fabric using IBM’s container service
which can now be used to execute any of the smart contract code written in
solidity or viper.
13
Copyright © Blockchain Council www.blockchain-council.org
Blockchain Council Certifications
You can check out our certifications, and kick start your career in the Blockchain
space today.
● Certified Blockchain Expert
● Certified Blockchain Expertv2
● Certified Blockchain Developer
● Certified Smart Contract Developer
● Certified Solidity Developer
● Certified Ethereum Developer
14
THANK YOU!
Any questions?
You can mail us at
hello@blockchain-council.org
Copyright © Blockchain Council www.blockchain-council.org 15

More Related Content

Similar to How to run ethereum smart contracts on hyperledger fabric

VEROS-white-paper
VEROS-white-paperVEROS-white-paper
VEROS-white-paper
Rip Burman
 
YEMChain V2.0 Development.pdf
YEMChain V2.0 Development.pdfYEMChain V2.0 Development.pdf
YEMChain V2.0 Development.pdf
Steve Hodgkiss
 

Similar to How to run ethereum smart contracts on hyperledger fabric (20)

Wwc developing hyperledger applications v4
Wwc  developing hyperledger applications v4Wwc  developing hyperledger applications v4
Wwc developing hyperledger applications v4
 
Ethereum Devcon1 Report (summary writing)
Ethereum Devcon1 Report (summary writing)Ethereum Devcon1 Report (summary writing)
Ethereum Devcon1 Report (summary writing)
 
How to use hyperledger fabric for the enterprise
How to use hyperledger fabric for the enterprise How to use hyperledger fabric for the enterprise
How to use hyperledger fabric for the enterprise
 
The best smart contract platforms in 2021
The best smart contract platforms in 2021The best smart contract platforms in 2021
The best smart contract platforms in 2021
 
Hyperledger burrow architecture and features
Hyperledger burrow architecture and featuresHyperledger burrow architecture and features
Hyperledger burrow architecture and features
 
Hyper ledger project
Hyper ledger projectHyper ledger project
Hyper ledger project
 
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 Tech Approach Whitepaper
Blockchain Tech Approach WhitepaperBlockchain Tech Approach Whitepaper
Blockchain Tech Approach Whitepaper
 
Top 8 blockchain based smart contract platforms
Top 8 blockchain based smart contract platformsTop 8 blockchain based smart contract platforms
Top 8 blockchain based smart contract platforms
 
Ibm announces upgrades to its multicloud blockchain
Ibm announces upgrades to its multicloud blockchainIbm announces upgrades to its multicloud blockchain
Ibm announces upgrades to its multicloud blockchain
 
VEROS-white-paper
VEROS-white-paperVEROS-white-paper
VEROS-white-paper
 
Blockchain Development Kit
Blockchain Development KitBlockchain Development Kit
Blockchain Development Kit
 
Libra vs. other blockchains
Libra vs. other blockchainsLibra vs. other blockchains
Libra vs. other blockchains
 
An introduction to blockchain and hyperledger v ru
An introduction to blockchain and hyperledger v ruAn introduction to blockchain and hyperledger v ru
An introduction to blockchain and hyperledger v ru
 
[Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발
[Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발 [Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발
[Call for code] IBM 블록체인을 활용하여 투명하게 구호기금 관리하기 - Hyperledger Fabric v1.1 by 맹개발
 
Hyperledger Fabric and Tools
Hyperledger Fabric and ToolsHyperledger Fabric and Tools
Hyperledger Fabric and Tools
 
Introduction to Solidity and Smart Contract Development (9).pptx
Introduction to Solidity and Smart Contract Development (9).pptxIntroduction to Solidity and Smart Contract Development (9).pptx
Introduction to Solidity and Smart Contract Development (9).pptx
 
02 - Introduction to Hyperledger Fabric
02 - Introduction to Hyperledger Fabric  02 - Introduction to Hyperledger Fabric
02 - Introduction to Hyperledger Fabric
 
Introducing flow the new blockchain for open worlds
Introducing flow  the new blockchain for open worldsIntroducing flow  the new blockchain for open worlds
Introducing flow the new blockchain for open worlds
 
YEMChain V2.0 Development.pdf
YEMChain V2.0 Development.pdfYEMChain V2.0 Development.pdf
YEMChain V2.0 Development.pdf
 

More from Blockchain Council

More from Blockchain Council (20)

A quick guide about blockchain based 'remittance' solution
A quick guide about blockchain based 'remittance' solutionA quick guide about blockchain based 'remittance' solution
A quick guide about blockchain based 'remittance' solution
 
By 2030, blockchain technology could drive a global economy of $1.7 trillion.
By 2030, blockchain technology could drive a global economy of $1.7 trillion.By 2030, blockchain technology could drive a global economy of $1.7 trillion.
By 2030, blockchain technology could drive a global economy of $1.7 trillion.
 
5 ways on how will blockchain impact healthcare
5 ways on how will blockchain impact healthcare5 ways on how will blockchain impact healthcare
5 ways on how will blockchain impact healthcare
 
In 2021, facebook plans to introduce its own cryptocurrency.
In 2021, facebook plans to introduce its own cryptocurrency.  In 2021, facebook plans to introduce its own cryptocurrency.
In 2021, facebook plans to introduce its own cryptocurrency.
 
Why NFTs has overtaken Defoe As the hottest trend in blockchain
Why NFTs has overtaken Defoe As the hottest trend in blockchainWhy NFTs has overtaken Defoe As the hottest trend in blockchain
Why NFTs has overtaken Defoe As the hottest trend in blockchain
 
Low code blockchain platform for crm by salesforce
Low code blockchain platform for crm by salesforceLow code blockchain platform for crm by salesforce
Low code blockchain platform for crm by salesforce
 
5 best blockchain stocks to buy in this year
5 best blockchain stocks to buy in this year 5 best blockchain stocks to buy in this year
5 best blockchain stocks to buy in this year
 
Top 10 tricks to keep your bitcoin wallet safe
Top 10 tricks to keep your bitcoin wallet safeTop 10 tricks to keep your bitcoin wallet safe
Top 10 tricks to keep your bitcoin wallet safe
 
Samsung started to develop its own blockchain
Samsung started to develop its own blockchain Samsung started to develop its own blockchain
Samsung started to develop its own blockchain
 
Google cloud became a network block producer by joining the eos blockchain co...
Google cloud became a network block producer by joining the eos blockchain co...Google cloud became a network block producer by joining the eos blockchain co...
Google cloud became a network block producer by joining the eos blockchain co...
 
Blockchain use cases in energy sector
Blockchain use cases in energy sectorBlockchain use cases in energy sector
Blockchain use cases in energy sector
 
Top Universities Are Increasing Blockchain Activity Worldwide.
Top Universities Are Increasing Blockchain Activity Worldwide.Top Universities Are Increasing Blockchain Activity Worldwide.
Top Universities Are Increasing Blockchain Activity Worldwide.
 
Vs code extensions required for blockchain development
Vs code extensions required for blockchain developmentVs code extensions required for blockchain development
Vs code extensions required for blockchain development
 
Blockchain Application In The Energy Sector Is Offering Cost Effective strate...
Blockchain Application In The Energy Sector Is Offering Cost Effective strate...Blockchain Application In The Energy Sector Is Offering Cost Effective strate...
Blockchain Application In The Energy Sector Is Offering Cost Effective strate...
 
Volvo committed to use blockchain for the highest level of transparency.
Volvo committed to use blockchain for the highest level of transparency. Volvo committed to use blockchain for the highest level of transparency.
Volvo committed to use blockchain for the highest level of transparency.
 
5 major advantages of blockchain technology for engineering students
5 major advantages of blockchain technology for engineering students 5 major advantages of blockchain technology for engineering students
5 major advantages of blockchain technology for engineering students
 
How blockchain can potentially replace traditional supply chain processes
How blockchain can potentially replace traditional supply chain processesHow blockchain can potentially replace traditional supply chain processes
How blockchain can potentially replace traditional supply chain processes
 
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 companies are leveraging blockchain in supply chains
How companies are leveraging blockchain in supply chainsHow companies are leveraging blockchain in supply chains
How companies are leveraging blockchain in supply chains
 
Blockchain Is Bringing Changes In American Healthcare Industry
Blockchain Is Bringing Changes In American Healthcare IndustryBlockchain Is Bringing Changes In American Healthcare Industry
Blockchain Is Bringing Changes In American Healthcare Industry
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 

How to run ethereum smart contracts on hyperledger fabric

  • 1. Copyright © Blockchain Council www.blockchain-council.org 1
  • 2. Copyright © Blockchain Council www.blockchain-council.org How to run ethereum smart contracts on Hyperledger fabric? The Hyperledger Project Executive Director, Brian Behlendorf has maintained from the inception of the project that it’s just wrong to view the Hyperledger and Ethereum communities as competitive. Ethereum is a public blockchain that allows anyone to join the network, by mining or running a node. 2
  • 3. Copyright © Blockchain Council www.blockchain-council.org On the other hand, Hyperledger is beneficial blockchain framework that is focusing on bringing the benefits of blockchain technology to businesses in a controlled manner. Let’s take a look at some of the critical differences between the two blockchains and see how combining the two can accomplish tasks that were previously impossible. 3
  • 4. Copyright © Blockchain Council www.blockchain-council.org Ethereum V/S Hyperledger Fabric All blockchains are not created the same. Public blockchains such as Bitcoin and Ethereum are decentralized ledgers that anyone in the world can access and use for transferring digital assets. However, there is a price to pay for the decentralized processing of transactions in the form of slow transactions and a large number of wasteful computations. 4
  • 5. Copyright © Blockchain Council www.blockchain-council.org On the other hand, a private blockchain created using the Hyperledger Fabric gives limited access to trusted users, typically those who were involved in the creation of the private blockchain. As a result, such blockchains have much higher throughput and therefore can perform different order of magnitudes better than public blockchains. 5
  • 6. Copyright © Blockchain Council www.blockchain-council.org The best of both worlds : Hyperledger Burrow Burrow is a permissioned smart contract machine developed by Monax which executes Ethereum Virtual Machine (EVM) smart contract code on a permissioned virtual machine such as Hyperledger. Ethereum smart contracts are typically written in Solidity or Viper and would require no modification to be deployed on the Burrow smart contract machine. 6
  • 7. Copyright © Blockchain Council www.blockchain-council.org Monax CEO Casey Kuhlman claims that Burrow provides a modular blockchain client such as Fabric with an intelligent contract interpreter that can handle EVM code. Burrow relies on three main components to execute the EVM smart contract code: the consensus engine, the interpreter and the application engine. 7
  • 8. Copyright © Blockchain Council www.blockchain-council.org Together, these components bring permissions to Ethereum Blockchain and before running any code, make sure that necessary permissions have been granted. Such a combination is useful as it can give public blockchains the security and reliability of the Ethereum public blockchain without the additional overheads. 8
  • 9. Copyright © Blockchain Council www.blockchain-council.org How to deploy EVM smart contracts on Burrow? Before you’re ready to deploy your smart contract code on Hyperledger, there are a few prerequisites that you must get out of the way. They include signing up for IBM cloud and setting up the IBM cloud command line interface. You would also require docker and Kubectl. 9
  • 10. Copyright © Blockchain Council www.blockchain-council.org Once you have the basics set up, you need to access the IBM Cloud Dashboard and sign in. After that, you need to go to the IBM Container Service and create a Cluster. After the cluster is set up, you need to find its worker nodes and save their public IP address as it will be required later. You are now ready to interact with your cluster using Kubectl. 10
  • 11. Copyright © Blockchain Council www.blockchain-council.org Now, deploying the EVM smart contract to the Fabric VM requires the following four steps: · Clone the container service repository. It can be done by running the given command in your working directory. – $ git clone https://github.com/SaifRehman/fabric-evm-ibm-container-servi ce.git · 11
  • 12. Copyright © Blockchain Council www.blockchain-council.org Navigate to the container service directory which contains the scripts required to deploy the EVM code. – $ cd fabric-evm–ibm-container-service · Navigate to script folder. – $ cd cs-offerings/scripts 12
  • 13. Copyright © Blockchain Council www.blockchain-council.org · Deploy to Fabric with an EVM plugin to the IBM Container Service. – $ ./create_all.sh This runs the Ethereum Virtual Machine on Fabric using IBM’s container service which can now be used to execute any of the smart contract code written in solidity or viper. 13
  • 14. Copyright © Blockchain Council www.blockchain-council.org Blockchain Council Certifications You can check out our certifications, and kick start your career in the Blockchain space today. ● Certified Blockchain Expert ● Certified Blockchain Expertv2 ● Certified Blockchain Developer ● Certified Smart Contract Developer ● Certified Solidity Developer ● Certified Ethereum Developer 14
  • 15. THANK YOU! Any questions? You can mail us at hello@blockchain-council.org Copyright © Blockchain Council www.blockchain-council.org 15