Redidacove / zktree-vote

Anonymous voting on Ethereum blockchain using zero knowledge proof

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Solidity 44.8%Language:Vue 36.7%Language:TypeScript 14.7%Language:Shell 2.1%Language:HTML 1.7%