A complete blockchain model implementing cryptocurrency.
- Crypto hashing based on SHA-256 algorithm
- Proof of Work consensus
- Dynamic mine rate difficulty adjustment
- Unit tests for all methods (./backend/tests)
Activate the virtual environment
source blockchain-full-env/Scripts/activate
Install all packages and dependencies
pip3 install -r requirements.txt
Run the tests
*First make sure to Activate the virtual environment (see above)
python -u -m pytest backend/tests
Start the application (Flask server) and API
*First make sure to Activate the virtual environment (see above)
python -u -m backend.app
Run a Node/Peer instance
*First make sure to Activate the virtual environment (see above)
export PEER=True && python -u -m backend.app