The following directory contains the blockchain implementation that was implemented in the following blog post.
Blog post is also accompanied with a git repo that hosts the python implementation along with a C# version.
- Python 3.6
- Refer to the following url if present documentation isn't sufficient:
https://askubuntu.com/questions/865554/how-do-i-install-python-3-6-using-apt-get
Ubuntu 16.10 and newer
sudo apt-get update
sudo apt-get install python3.6
Ubuntu 14.04 and 16.04
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6
Install pip 3.6
sudo curl https://bootstrap.pypa.io/get-pip.py | sudo python3.6
Centos 7
- Refer to the following url if present documentation isn't sufficient:
https://janikarhunen.fi/how-to-install-python-3-6-1-on-centos-7.html
Install updates/needed utils
sudo yum update
sudo yum install yum-utils
sudo yum groupinstall development
Install upstream stable repo
sudo yum install https://centos7.iuscommunity.org/ius-release.rpm
Install python 3.6
sudo yum install python36u
Install pip 3.6 and other dev tools
sudo yum install python36u-pip
sudo yum install python36u-devel
- Refer to the following url if present documentation isn't sufficient:
http://docs.python-guide.org/en/latest/dev/virtualenvs/
While it is not necessary that this application is run in a virtual environment, it is highly recommended that you do run it in a virtual environment.
pip3
refers to pip3.6
and higher
Pipenv
sudo pip3 install pipenv
Install project requirements
pipenv install -r requirements.txt
Run project
python3
refers to python3.6
and higher
pipenv run python3 blockchain.py