/blockchain-intro

A Gentle Intro to Blockchain with Flask

Primary LanguagePython

A blockchain is a linked list of dictionaries.

https://imgur.com/xSlgvtl

Based on blockchain by dvf. Used under MIT license: https://github.com/dvf/blockchain

Installation

pipenv install  # install dependencies
pipenv shell  # activate virtual env
deactivate  # deactivate virtual env
exit  # exit project

Implementation

  • Remember to restart the server after making code changes!

  • To run basic_block, python3 blockchain.py

  • To run client_mining,

    • python3 blockchain.py in one terminal and python3 miner.py in another terminal.
    • blockchain is the backend and miner is the client.