customcryptocurrency's People
Forkers
bspanda98 anonghost666 dev-games bencryptoking ahh21 anmolkataria xscuvalar gametreckers kingsleyogu super-iot essentric-coder shivhare24 csanchez17 argozilla alexzigator bitcryptoman renofrankielim888 tony-hensler-vitale-digital gurkaransahni99 godottokorea os-environment pravpuru theheartofraven subhomoy-roy-choudhury novousernx gbombassaro elvismircan sobev cesararc pirahansiah hykelauncher vivekmathema etlapa anamaria-lgtm smartcyberhacker damarkuncoro alainrafiki ghartzell12 argosk francoismc makerchannel spawnhector prestapro8 pipfeld daro alejandroolmed59 preetmaan lavrut rajesh-professor cu2night arneanka heyonuoha turpinhill gall-odrone shubhamandalx sodekunle djsingleton georgekazakis iampankajbhati bobbydxl evgeniypd95 engrfrank lonestarcoin bahaahassanieh abdullah12has gamozov raghvendra-user daawsxn imamrovid9 emailtovamos swagzra aayushmatkar githubchrisrice brado456 lalanachami protoj92 coochiemasterr 0980991 turnbula supersheks kosowwwa abah01 bw-leran 5l1v3r1 damonclifford welovegsm jinensetpal re6urse therealneri nexobyte1 aeron7 thephantomsamuari aif4 dharun-narayanan machar94 siddhant-varma meher509 sahajrajmalla netindiapro dunkindcustomcryptocurrency's Issues
Wrong title
Don't want to be that guy but... CustomCryptocurrency is spelled wrong. You missed a 't' there. Anyways just wanted to point that out
AttributeError: _RSAobj object has no 'export_key' attribute
I always get this error while signing up :-(
How to run it on multiple machines?
Hey there!
So running this on the same system is easy but how do I run & sync this over multiple systems? I have the website up n running and accessible via a domain but cant seem to figure out how anyone would "become a node"
Nodes are not added to set() after running node
Hi! I ran run.py and run2.py but those nodes have different blockchains
Cant run the code
No No module named 'Crypto' could use some help
Registering issues
Hey, can anyone please clarify in helping fix this while registering for a new account
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
Sign-up throwing Errors
Got port 80 running after running python3 run.py (using python 3.7) and installing all dependencies. On Register after clicking sign-up I get "Internal Server Error. The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application."
In terminal:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sqlalchemy/util/_collections.py", line 1008, in call
return self.registry[key]
KeyError: <greenlet.greenlet object at 0x1094c5e08 (otid=0x109557d38) current active started main>
AND:
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/flask_sqlalchemy/init.py", line 914, in apply_driver_hacks
sa_url.database = os.path.join(app.root_path, sa_url.database)
AttributeError: can't set attribute
all dependencies are pip installed for python3.
Wondering how I can fix this issue for sign-up!
No signature verification
I was looking through the blockchain.py
file and noticed that the isValidTransaction()
function which should verify the validity of the transaction doesn't actually check that signature so anybody can forge transactions on someones behalf using a fraudulent private key.
Can't register in web app.
Gives 500 Internal Server Error.
In run.py terminal, it gives this error:
[2021-05-23 16:59:58,636] ERROR in app: Exception on /register [POST]
Traceback (most recent call last):
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\sqlalchemy\util_collections.py", line 1008, in call
return self.registry[key]
KeyError: <greenlet.greenlet object at 0x000002C09A291510 (otid=0x000002C09BC475C0) current active started main>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\flask\app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\flask\app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\flask_compat.py", line 39, in reraise
raise value
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\flask\app.py", line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File "C:\Users\Coding\OneDrive\Desktop\CustomCrypocurrency\gymcoin\routes.py", line 60, in register
if form.validate_on_submit():
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\flask_wtf\form.py", line 100, in validate_on_submit
return self.is_submitted() and self.validate()
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\wtforms\form.py", line 318, in validate
return super(Form, self).validate(extra)
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\wtforms\form.py", line 150, in validate
if not field.validate(self, extra):
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\wtforms\fields\core.py", line 226, in validate
stop_validation = self.run_validation_chain(form, chain)
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\wtforms\fields\core.py", line 246, in run_validation_chain
validator(form, self)
File "C:\Users\Coding\OneDrive\Desktop\CustomCrypocurrency\gymcoin\forms.py", line 28, in validate_username
user = User.query.filter_by(username = username.data).first()
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\flask_sqlalchemy_init.py", line 552, in get
return type.query_class(mapper, session=self.sa.session())
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\sqlalchemy\orm\scoping.py", line 129, in call
return self.registry()
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\sqlalchemy\util_collections.py", line 1010, in call
return self.registry.setdefault(key, self.createfunc())
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\sqlalchemy\orm\session.py", line 4065, in call
return self.class(**local_kw)
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\flask_sqlalchemy_init_.py", line 176, in init
bind = options.pop('bind', None) or db.engine
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\flask_sqlalchemy_init_.py", line 998, in engine
return self.get_engine()
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\flask_sqlalchemy_init_.py", line 1017, in get_engine
return connector.get_engine()
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\flask_sqlalchemy_init_.py", line 594, in get_engine
self.engine = rv = self.sa.create_engine(sa_url, options)
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\flask_sqlalchemy_init.py", line 1027, in create_engine
return sqlalchemy.create_engine(sa_url, **engine_opts)
File "", line 2, in create_engine
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\sqlalchemy\util\deprecations.py", line 298, in warned
return fn(*args, **kwargs)
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\sqlalchemy\engine\create.py", line 548, in create_engine
dbapi = dialect_cls.dbapi(**dbapi_args)
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\site-packages\sqlalchemy\dialects\sqlite\pysqlite.py", line 473, in dbapi
from sqlite3 import dbapi2 as sqlite
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\sqlite3_init.py", line 23, in
from sqlite3.dbapi2 import *
File "\LAPTOP-DF7SK2QD\Users\Coding\anaconda3\lib\sqlite3\dbapi2.py", line 27, in
from _sqlite3 import *
ImportError: DLL load failed while importing _sqlite3: The specified module could not be found.
127.0.0.1 - - [23/May/2021 16:59:58] "←[35m←[1mPOST /register HTTP/1.1←[0m" 500 -
Help would be appreciated.
Web server
When i post this on a web server and try to sign in it gives me an error 500
Misspelled Title
Don't want to be that guy but... CustomCryptocurrency is spelled wrong. You missed a 't' there. Anyways just wanted to point that out
how would one go about editing the coin
how do i change the all of the gymcoin text
uhh hello how do i change all of the gymcoin text including the website name and the others
AttributeError: _RSAobj object has no 'export_key' attribute
i get this error everytime i try to sign up
Unable to run code
I have created the requirement file with the content below
requests==2.26.0
Flask==2.0.1
flask_bcrypt==0.7.1
flask_login==0.5.0
flask_sqlalchemy==2.5.1
flask_wtf==0.15.1
jsonpickle==2.0.0
pycryptodome==3.10.1
WTForms==2.3.3
Then ran the command like
pip install -r gymcoin/requirements.txt
Now the dependencies are restored
Whenever i run > python run.py or python run2.py nothing happens
I have checked the Url also
http://127.0.0.1:5001/
Can't run code
It (the debugging) stops at " from gymcoin.blockchain import * ". ImportError: No module named gymcoin.blockchain!
Btw my friend chose the name
(https://user-images.githubusercontent.com/84903084/119798015-10913880-bedb-11eb-8ad5-4bba457f927a.PNG)
No module named 'Crypto'
ModuleNotFoundError: No module named 'Crypto'
iv check everywhere for a fix and cant find one please help!
Cant signup on the web app
ERROR in app: Exception on /register [POST]
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/Users/josephmichael/Downloads/CustomCryptocurrency-master 2/gymcoin/routes.py", line 63, in register
keyGen = blockchainObj.generateKeys();
File "/Users/josephmichael/Downloads/CustomCryptocurrency-master 2/gymcoin/blockchain.py", line 135, in generateKeys
key = RSA.generate(2048)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Crypto/PublicKey/RSA.py", line 508, in generate
obj = _RSA.generate_py(bits, rf, progress_func, e) # TODO: Don't use legacy _RSA module
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Crypto/PublicKey/_RSA.py", line 50, in generate_py
p = pubkey.getStrongPrime(bits>>1, obj.e, 1e-12, randfunc)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Crypto/Util/number.py", line 264, in getStrongPrime
return _fastmath.getStrongPrime(int(N), int(e), false_positive_prob,
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 202, in read
return self._singleton.read(bytes)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 202, in read
return self._singleton.read(bytes)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 202, in read
return self._singleton.read(bytes)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 178, in read
return _UserFriendlyRNG.read(self, bytes)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 129, in read
self._ec.collect()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/Crypto/Random/_UserFriendlyRNG.py", line 77, in collect
t = time.clock()
AttributeError: module 'time' has no attribute 'clock'
Cant register (Attribute not found"
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\sqlalchemy\util_collections.py", line 1008, in call
return self.registry[key]
KeyError: <greenlet.greenlet object at 0x000001CBD8AA2E50 (otid=0x000001CBD8B41880) current active started main>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\flask\app.py", line 2091, in call
return self.wsgi_app(environ, start_response)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\flask\app.py", line 2076, in wsgi_app
response = self.handle_exception(e)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\flask\app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\flask\app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\flask\app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\flask\app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "C:\Users\User\iCloudDrive\Documents\2021 fall\Cryptography_\Project\AUDcoin\AUDcoin\routes.py", line 82, in register
if form.validate_on_submit():
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\flask_wtf\form.py", line 86, in validate_on_submit
return self.is_submitted() and self.validate()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\wtforms\form.py", line 329, in validate
return super().validate(extra)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\wtforms\form.py", line 146, in validate
if not field.validate(self, extra):
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\wtforms\fields\core.py", line 242, in validate
stop_validation = self.run_validation_chain(form, chain)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\wtforms\fields\core.py", line 262, in run_validation_chain
validator(form, self)
File "C:\Users\User\iCloudDrive\Documents\2021 fall\Cryptography\Project\AUDcoin\AUDcoin\forms.py", line 28, in validate_username
user = User.query.filter_by(username = username.data).first()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\flask_sqlalchemy_init.py", line 514, in get
return type.query_class(mapper, session=self.sa.session())
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\sqlalchemy\orm\scoping.py", line 47, in call
sess = self.registry()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\sqlalchemy\util_collections.py", line 1010, in call
return self.registry.setdefault(key, self.createfunc())
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\sqlalchemy\orm\session.py", line 4177, in call
return self.class_(**local_kw)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\flask_sqlalchemy_init_.py", line 138, in init
bind = options.pop('bind', None) or db.engine
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\flask_sqlalchemy_init_.py", line 943, in engine
return self.get_engine()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\flask_sqlalchemy_init_.py", line 962, in get_engine
return connector.get_engine()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\flask_sqlalchemy_init_.py", line 555, in get_engine
options = self.get_options(sa_url, echo)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\flask_sqlalchemy_init_.py", line 570, in get_options
self._sa.apply_driver_hacks(self.app, sa_url, options)
File "C:\Users\User\AppData\Local\Programs\Python\Python310\Lib\site-packages\flask_sqlalchemy_init.py", line 914, in apply_driver_hacks
sa_url.database = os.path.join(app.root_path, sa_url.database)
AttributeError: can't set attribute
The only thing I changed is the name of the coin, i also installed all the libraries mentioned in blockchain.py.
version : Python 3.10.1 64bit
IDE : Visual Studio Code
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.