Skip to content

nicolasdiez/blockchain-cryptocurrency-full-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain Cryptocurrency Full Model

A complete blockchain model implementing cryptocurrency.

Features:

  • Crypto hashing based on SHA-256 algorithm
  • Proof of Work consensus
  • Dynamic mine rate difficulty adjustment

Project also includes:

  • Unit tests for all methods (./backend/tests)

Command Reference

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