/Blockchain-Implementation

A simple blockchain using Python to understand basic principles behind any blockchain.

Primary LanguagePythonMIT LicenseMIT

Blockchain-Implementation

Installation

  1. Make sure Python 3.6+ is installed.
  2. Install pipenv.
$ pip install pipenv 
  1. Create a virtual environment and specify the Python version to use.
$ pipenv --python=python3.6
  1. Install requirements.
$ pipenv install 
  1. Run the server:
    • $ pipenv run python blockchain.py
    • $ pipenv run python blockchain.py -p 5001
    • $ pipenv run python blockchain.py --port 5002

Use Postman to interact with the API

Functionalities:

  1. /transaction/new, /mine, /chain, /noedes/register
  2. Implemented Basic Proof of Work
  3. Implemented Consensus Algorithm

Reference:

Use this amazing article for the reference.