Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

fuji97/2fa-vote

Repository files navigation

Installation

  1. Install NodeJS (at least v16) and NPM
  2. Clone the repo and its submodules
git clone --recurse-submodules --remote-submodules https://github.com/fuji97/2fa-vote.git

Usage

  1. Install all dependencies via NPM and build
npm install
npm run build
  1. Generate zk-SNARKS initial files
npm run generate-snarkjs

This 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).

  1. Run tests
npm test

This will run all the unit tests in the project, including the integration test simulating the entire flow of the system.

  1. Run default flow
npm run flow

This will simulate a standard flow with vote generation, encryption, proofs verification and tallying. Console logs will show all the steps performed with corresponding outputs.

About

2-Factor Authentication Voting System - Proof of Concept

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors