Giter VIP home page Giter VIP logo

jonybepary / hbpevs Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 929 KB

Hybrid BlockChain-based E-Voting system (HBPEVS), A voting system where the entire structure is transparent, permissioned, append-only, and decentralized. The vote People can easily vote with little to no assistance and verify their vote if wanted anonymously without revealing their identity. The system won’t depend on a single point of failure and its tamper-proof. It can coexist with the current electoral system and facilitates a complete power structure so any unauthorized activity could be prevented. It’s a hybrid blockchain-based system that facilitates both higher security, Transparency, anonymity, and immutability of a public blockchain and the High Efficiency, Regulations of a private blockchain. Which is required to be compatible with the public policy of the electoral system.

License: MIT License

Dockerfile 0.59% Shell 15.80% Go 83.61%
blockchain multiparty-computation sharding

hbpevs's Introduction

Hybrid BlockChain-based E-Voting System (HBPEVS)

GitHub GitHub last commit GitHub issues GitHub stars GitHub forks

Overview

The Hybrid BlockChain-based E-Voting System (HBPEVS) is a revolutionary voting system designed to be transparent, permissioned, append-only, and decentralized. This system allows people to vote easily with little to no assistance and verify their votes anonymously without revealing their identity. The system is tamper-proof and does not depend on a single point of failure. It can coexist with the current electoral system and facilitates a complete power structure to prevent any unauthorized activity.

HBPEVS combines the higher security, transparency, anonymity, and immutability of a public blockchain with the high efficiency and regulations of a private blockchain. This hybrid approach ensures compatibility with the public policy of the electoral system.

Key Features

  • Transparency: Every vote is recorded on the blockchain, ensuring full transparency and traceability.
  • Decentralized: No single point of failure; the system is distributed across multiple nodes.
  • Permissioned: Only authorized users can participate in the voting process.
  • Append-Only: Once a vote is recorded, it cannot be altered or deleted.
  • Anonymity: Voters can verify their votes without revealing their identity.
  • Tamper-Proof: The blockchain ensures that votes cannot be tampered with.
  • High Efficiency: The private blockchain component ensures efficient processing of votes.
  • Regulations: Compliance with electoral regulations and public policy.

Technology Stack

  • Blockchain: Utilizes a hybrid blockchain approach combining public and private blockchain features.
  • LevelDB: A fast key-value storage library for storing blockchain data.
  • Libp2p: A peer-to-peer networking library for decentralized communication.
  • Gin: A web framework for building the API endpoints.
  • Go: The programming language used for the implementation.
  • Cryptography: Uses SHA-256 for hashing and Ed25519 for digital signatures.
  • Base58: Encoding format used for keys and hashes.
  • Testing: Benchmarking and testing frameworks to ensure performance and reliability.

Installation

Prerequisites

  • Go (version 1.16 or later)
  • LevelDB
  • Libp2p
  • Gin

Steps

  1. Clone the repository:

    git clone https://github.com/JonyBepary/pqhbevs_hac.git
    cd pqhbevs_hac
  2. Install dependencies:

    go mod tidy
  3. Run the application:

    go run main.go

Usage

API Endpoints

  • Add Vote: POST /add_vote

    • Adds a new vote to the blockchain.
    • Parameters: vote, pscode, digest, po_id, po_privkey, verbose
  • Generate Genesis Block: POST /generate_genesis

    • Initializes the genesis block.
    • Parameters: pscode, seed, start, duration, config, verbose

Benchmarking

  • NID Server Benchmark:

    go test -benchmem -run=^$ -bench ^Benchmark_NID_SERVER$ github.com/sohelahmedjoni/pqhbevs_hac/test -benchtime 100x >> nid_data.txt
  • Block Generation Rate Benchmark:

    go test -benchmem -run=^$ -bench ^Benchmark_BlockGenearationRate$ github.com/sohelahmedjoni/pqhbevs_hac/test -benchtime 100x >> newblock_data.txt -timeout 60m

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

LinkedIn X Email

hbpevs's People

Contributors

jonybepary avatar

Watchers

James Cloos 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.