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
- Host: GitHub
- URL: https://github.com/connormac/simplechain
- Owner: ConnorMac
- Created: 2017-09-04T22:47:59.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-21T10:51:07.000Z (about 8 years ago)
- Last Synced: 2025-03-17T08:48:10.484Z (over 1 year ago)
- Topics: blockchain, python, simplechain
- Language: Python
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`