GithubHelp home page GithubHelp logo

saoreenrahman / blockchain-based-e-voting-system Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 17 KB

Solidity 100.00%
ethereum-blockchain ethereum-contract ganache remix smart-contracts solidity-contracts

blockchain-based-e-voting-system's Introduction

Blockchain-based-E-voting-System

Running instructions:

Tools Setup:

  1. Install ganache:

    • Download from: https://github.com/trufflesuite/ganache/releases
    • (for windows:) Download Ganache-2.1.1-win-setup.exe
    • Install and run.
    • Once ganache GUI is running go to
      • setting (setting button) -> CHAIN -> set gas limit 10000000
      • setting (setting button) -> ACCOUNTS & KEYS -> set the mnemonic "wine school heavy thought bomb awkward acquire urban bulk aware high true"
      • Restart ganache (by pressing the restrat button on top right)
  2. Go to https://remix.ethereum.org/

    • Load the files.
      • For paper 1: Election.sol and CryptoLib.sol
      • For paper 2: Ballot.sol
    • Set the compiler version to version:0.4.10+commit.f0d539ae.Emscripten.clang
    • For paper 1: select the Election.sol file first. Then press the Start to compile button in remix.
    • Once the compilation is done, switch to Run tab in remix.
    • In the run tab:
      • Environment: Web3 Provider
        • A pop up will appear, select ok.
        • Set Web3 Provider Endpoint: http://localhost:7545 (it will connect remix with ganache)
      • Gas limit: set 10000000.
      • Then select the Election contract from the drop down option and press deploy.
      • (For paper 2) Set "Election Name", 500 during deployment
        • Once deployed all the functions of the smart contract will become visible under "Deployed Contracts".

blockchain-based-e-voting-system's People

Contributors

saoreenrahman avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.