A small localhost blockchain written in Python 3
genesis.py
Creates the header of the genesis block (using Bitcoin genesis header in this case)
mine.py
Mines for the next block using a difficulty of 4 (4 0's for each new block). You can change the difficulty variable in the script file
client.py
Inserts tx's inside the next block before they're mined
utils.py
The module containing the functions needed in the rest of the scripts
Using mine.py to find new blocks and client.py to add transactions
Hexdump of a block without a transaction and a block with one
- Facundo Atrio - Project
This project is licensed under the MIT License - see the LICENSE.md file for details