2021 Call for Code Awards: Live from New York, with SNL’s Colin Jost! Learn more

Voting app combines the power of both Ethereum and Hyperledger Fabric

Want to know how you can use Ethereum with the permissioned Hyperledger Fabric platform? You can do this using a Hyperledger Chaincode Ethereum Virtual Machine (EVM) hosting Fabric Network.

Consider the following…

Hyperledger Chaincode EVM: The chaincode is written in Go and is a wrapper around the Hyperledger Burrow EVM implementation, which can run compiled Solidity smart contracts.

Fab3: This is a partial implementation of the Ethereum JSON RPC API. Fab3 interacts with the EVM chaincode and queries the ledger. The Fabric Go SDK is used to implement Fab3.

Voting DApp: This is Node.js based and written in Javascript. It uses the Web3 library to process smart contract deployments, and uses Solidity as a language to write the smart contracts. Voting DApp serves as a placeholder for all interactions.

In the code pattern Develop a voting application using Hyperledger and Ethereum, you’ll learn how to:

  • Set up and install a decentralized app with Fabric, Chaincode EVM, and Ethereum
  • Write, deploy, and compile Solidity smart contracts
  • Vote and display the polls on a simple web page