- blockchain.py
blocchain node. - nomal_req_node.py
In nomal node, client to request. - nomal_res_node.py
In nomal node, server to response. - valid_node.py
In valid node, server to response.
Run those program
$ python valid_node.py
$ python nomal_res_node.py
$ python nomal_req_node.py [IP address](ex 0.0.0.0)
- Make sure Python 3.6+ is installed.
- Install pipenv.
$ pip install pipenv
- Create a virtual environment and specify the Python version to use.
$ pipenv --python=python3.6
- Install requirements.
$ pipenv install
- Run the server:
$ pipenv run python blockchain.py
$ pipenv run python blockchain.py -p 5001
$ pipenv run python blockchain.py --port 5002
https://link.springer.com/article/10.1007/s11227-016-1870-0 https://github.com/dvf/blockchain
Contributions are welcome! Please feel free to submit a Pull Request.