Giter VIP home page Giter VIP logo

anmolpanwar / e-voting-system-on-blockchain Goto Github PK

View Code? Open in Web Editor NEW
35.0 6.0 15.0 68.93 MB

A trust-less voting system based on blockchain to secure the purpose of democracy.

Python 98.00% HTML 0.35% PowerShell 0.04% Shell 0.03% C 0.68% JavaScript 0.31% CSS 0.20% C++ 0.26% Roff 0.06% GAP 0.04% Fortran 0.02% Jupyter Notebook 0.03%
blockchain evoting evoting-application crypto hashing e-voting vote-data transactions hash voter

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

Contributors

anmolpanwar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

e-voting-system-on-blockchain's Issues

Error

When I try to vote I get the following error.

[2020-08-04 17:22:44,758] ERROR in app: Exception on /vote [POST]
Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\E-voting-system-on-blockchain\lib\site-packages\flask\app.py", line 2446, in wsgi_app
response = self.full_dispatch_request()
File "C:\ProgramData\Anaconda3\envs\E-voting-system-on-blockchain\lib\site-packages\flask\app.py", line 1951, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\ProgramData\Anaconda3\envs\E-voting-system-on-blockchain\lib\site-packages\flask\app.py", line 1820, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\ProgramData\Anaconda3\envs\E-voting-system-on-blockchain\lib\site-packages\flask_compat.py", line 39, in reraise
raise value
File "C:\ProgramData\Anaconda3\envs\E-voting-system-on-blockchain\lib\site-packages\flask\app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "C:\ProgramData\Anaconda3\envs\E-voting-system-on-blockchain\lib\site-packages\flask\app.py", line 1935, in dispatch_request
return self.view_functionsrule.endpoint
File "C:/Projects/Myproject/Python/E-voting-system-on-blockchain/Major2/blockchain.py", line 334, in voter
encvotedata = v1.encryptvote()
File "C:/Projects/Myproject/Python/E-voting-system-on-blockchain/Major2/blockchain.py", line 56, in encryptvote
self.votedata.append(enc.sign(voterkeys['sk'], bytes(sha256(str('---'.join(str(x) for x in self.votedata)).encode('utf-8')).hexdigest(),'utf-8')))
File "C:\Projects\Myproject\Python\E-voting-system-on-blockchain\Major2\enc.py", line 32, in sign
return base64.b64encode(str((privatekey.sign(data,''))[0]).encode())
File "C:\ProgramData\Anaconda3\envs\E-voting-system-on-blockchain\lib\site-packages\Crypto\PublicKey\RSA.py", line 384, in sign
raise NotImplementedError("Use module Crypto.Signature.pkcs1_15 instead")
NotImplementedError: Use module Crypto.Signature.pkcs1_15 instead

Please give me a solution.

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.