1.0.0 • Published 17 days ago

zktree-vote v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
17 days ago

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