Skip to content

yttsen9/zktree-vote

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zktree-vote

Anonymous voting on Ethereum blockchain using zero knowledge proof

Usage

  • Clone the repository by git clone https://github.com/TheBojda/zktree-vote.git
  • Install wget (by apt-get install wget on Ubuntu/Debian)
  • Install the project dependencies and prepare by npm install in the project directory
  • Start a Hardhat node by npx hardhat node in the project directory
  • In another terminal deploy the smartcontract by npm run deploy
  • Start the app by npm start

The app uses MetaMask to connect the blockchain, so the MetaMask extension have to be installed, and connected to the Hardhat local node. The smart contract owner is the first Hardhat account, and the second account is set as a validator by the deployment script.

For more details, please read my article on Medium

About

Anonymous voting on Ethereum blockchain using zero knowledge proof

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Solidity 44.8%
  • Vue 36.7%
  • TypeScript 14.7%
  • Shell 2.1%
  • HTML 1.7%