anmolpanwar / e-voting-system-on-blockchain Goto Github PK
View Code? Open in Web Editor NEWA trust-less voting system based on blockchain to secure the purpose of democracy.
A trust-less voting system based on blockchain to secure the purpose of democracy.
I am unable to understand how to run the project and its working
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.