Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

cedoor/elekton-dapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elekton-contracts | elekton.js | elekton-dapp

Elekton DApp

Elekton cross-platform decentralized application.

Linter eslint Code style prettier Repository top language

Elekton is a set of modules useful to create a simple e-voting system that uses non-interactive zero-knowledge proofs and blockchain technologies to allow users to vote anonymously in a verifiable and transparent way. In addition to this repository there are the Elekton contracts and a JavaScript library (elekton.js) with the functions to interact with them.


Table of Contents

Install

Clone this repository and install the dependencies:

git clone https://github.com/elekton/elekton-dapp.git
cd elekton-dapp
yarn # or `npm i`

Usage

  1. Create the snark artifacts by running yarn snark on the elekton-contracts repository,
  2. copy the main.wasm and circuit_final.zkey files from the ./elekton-contracts/build/snark/ folder to the ./elekton-dapp/public folder,
  3. start the Besu development network with yarn start and deploy the Elekton.sol contract with yarn deploy on the elekton-contracts repository,
  4. copy the address of the deployed contract and put it in the ./elekton-dapp/src/config.ts configuration file,
  5. start a local IPFS node,
  6. finally run yarn start to start the application on a local server.

Notice: ran yarn --prod within ./node_modules/elekton if you have any problem with TextEncoder or TextDecoder!

Contacts

Developers