An open API service indexing awesome lists of open source software.

https://github.com/connormac/simplechain

A simple blockchain implementation in python
https://github.com/connormac/simplechain

blockchain python simplechain

Last synced: about 1 year ago
JSON representation

A simple blockchain implementation in python

Awesome Lists containing this project

README

          

# simplechain
A simple blockchain implementation in python.

A work in progress meant to be for learning purposes.

# How to use

Create initial node: `python simplechain/simplechain.py`

Add additional nodes: `python simplechain/simplechain.py -n NODE_IP:NODE_PORT,NODE2_IP:NODE2_PORT`

Create a new block: `echo '{"function":"create_and_add_block","block_data":"hello this is some new block data"}' | nc NODE_IP NODE_PORT`