No description
Find a file
2020-02-15 15:46:03 +01:00
.gitignore removed written_blockchain from .gitignore 2019-11-06 10:33:26 +01:00
block.py added proof attribute to block, wrote tests template 2019-11-04 11:01:53 +01:00
blockchain.py wrote tests 2019-11-06 10:12:03 +01:00
blockchain_with_file.py handled empty file when importing 2019-11-07 10:10:54 +01:00
example.py Set up file handling, not tested yet 2019-11-04 16:49:13 +01:00
LICENSE Create LICENSE 2019-11-06 10:41:34 +01:00
mempool.py changed create_transaction ordering of keys for consistency with json exports 2019-11-07 15:38:57 +01:00
README.md Create README.md 2019-11-06 10:37:54 +01:00
tests.py wrote tests for mempool 2019-11-07 16:04:47 +01:00
written_blockchain.json written blockchain 2020-02-15 15:46:03 +01:00

PythonLocalBlockchain

When learning about blockchain, I decided to build my own local blockchain in Python, and add the ability to write to a file and verify the hashes. This is probably missing some (or many) of the things we need when building a functional blockchain, but it's purpose is to be able to see a small local blockchain in action with the command line.

Quick start

Run the file example.py to build a blockchain from scratch with random values. It's really only there to be an interactive view on a blockchain, but the blockchain it creates will be destroyed when the program finishes, so there's no functionnality to it beyond exploration.

The file blockchain_with_file.py however writes the blockchain to a file, and uses data that the user supplies. It could therefore even be used as a personal book keeping program for example.