Skip to content

PeaKend/PyChain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyChain

A small localhost blockchain written in Python 3

Usage

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

Screenshots

Using mine.py to find new blocks and client.py to add transactions

Mining with client

Hexdump of a block without a transaction and a block with one

Hexdump of blocks

Authors

  • Facundo Atrio - Project

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A small blockchain written in Python 3

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages