Coder Social home page Coder Social logo

miraj98 / decentralised-voting-azure Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 68.91 MB

Link to the web app

Home Page: https://miraj98.github.io/azure-voting-client

License: MIT License

JavaScript 95.70% HTML 4.30%
uport verifiable-credentials blockchain ethereum smart-contracts react truffle azure azure-blockchain nodejs

decentralised-voting-azure's Introduction

Demo

The blockchain is successfully running on Azure. Here is the RPC-endpoint: https://blockchainfyjsubbloc.blockchain.azure.com:3200/OBwwyHUPU7aZFrPT5aCtRkzm

Note

Most transactions are handled by a backend server, however transactions related to actual voting need to be performed by voters manually and hence they need to have their own wallet (the easiest way is to use MetaMask extension in the browser) to sign transactions. Hence to connect to the Azure Blockchain they will have to use "Custom RPC" option in MetaMask and paste the RPC endpoint provided above to be able to interact with the blockchain and the contracts deployed on it.

Pre requisites

You will need to have MetaMask installed into your browser. Or if you are using mobile browser you will need to use a dapp browser. You will also need the uPort app on your phone to receive and share your Voter ID credentials.

Decentralised voting on Azure Blockchain

  1. Using uPort mobile app to issue Voter ID credentials. These credentials will be in the form of "Verifiable credentials"
  2. These credentials will be used to authenticate a particular user to vote on the blockchain. He/she will be only able to vote once and only for the candidate registered in their constituency.

Implementation

We will be using a NodeJs server that will have a couple of functions: Issuing/verifying credentials and showing a list of candidates that can be voted for based on the constituency they are registered in. Once the user is authenticated using the uPort app, he/she will be able to sign a transaction that will be recorded on the blockchain.

decentralised-voting-azure's People

Contributors

miraj98 avatar

Watchers

 avatar  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.