[go: nahoru, domu]

Skip to content

Experiment in gassless voting using snarks

Notifications You must be signed in to change notification settings

vocdoni/voterollup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Binding voice proof-of-concept

  • this code is a aragon labs research project
  • is a quick & dirty implementation of an idea, expect bugs, do not use in production

How to build the project

  • install nvm, run nvm use 16
  • go to circuits folder && run npm i
  • go to contracts folder && run npm i
  • go to contracts/circuits folder
    • uncomment all makefile comments #
    • run make, wait some hours
  • create folder backend/q_n_d/prover and from there
    • git clone https://github.com/iden3/rapidsnark, compile the project, see its readme
    • git clone https://github.com/iden3/circom_runtime
    • mkdir nlohmann && wget https://github.com/nlohmann/json/releases/download/v3.9.1/json.hpp -O nlohmann/json.hpp
  • go to backend/q_n_d/node_modules/@vocdoni/storage-proofs-eth
    • run npm i
    • run npm run build
  • go to backend/q_n_d
    • run npm i
    • run build_all.sh

How to run the server

  • first run the test from backend/q_n_d node test.js
  • import private key accounts in that appears in test.js
  • in parallel
    • in backend/q_n_d run node server
    • in backend/q_n_d/client run node run serve