-
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)
-
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".
- Environment: Web3 Provider
- Load the files.
blockchain-based-e-voting-system's Introduction
blockchain-based-e-voting-system's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.