Blockchain is a hot topic around the world these days. A blockchain is a type of distributed ledger or decentralized database that keeps continuously updated digital records of who owns what. In more general terms, it’s a public database where new data are stored in a container called a block and are added to an immutable chain (hence blockchain) with data added in the past.
“[Blockchain] is to Bitcoin, what the internet is to email. A big electronic system, on top of which you can build applications. Currency is just one.” Sally Davies, FT Technology Reporter
fun.py ---- contains 2 helper functions create_genesis_block(getting root block),next_block(getting next blockto add new info)
block.py---- contains Block class.
Blockchain.py --- main file, uses fun.py and block.py , generates new blocks and add data in the blocks.