git clone --recurse-submodules --remote-submodules https://github.com/fuji97/2fa-vote.git- Install all dependencies via NPM and build
npm install
npm run build- Generate zk-SNARKS initial files
npm run generate-snarkjsThis will run the shell script snarkjs_generate.sh that will generate all the files required by snarkjs to works.
Insert random text as Entropy when required (two times).
- Run tests
npm testThis will run all the unit tests in the project, including the integration test simulating the entire flow of the system.
- Run default flow
npm run flowThis will simulate a standard flow with vote generation, encryption, proofs verification and tallying. Console logs will show all the steps performed with corresponding outputs.