https://github.com/anthonykrivonos/blockchain-python
🔗 Multi-use blockchain implementation in Python using TCP.
https://github.com/anthonykrivonos/blockchain-python
blockchain client concurrent lightweight python python3 server tcp transactions
Last synced: 9 days ago
JSON representation
🔗 Multi-use blockchain implementation in Python using TCP.
- Host: GitHub
- URL: https://github.com/anthonykrivonos/blockchain-python
- Owner: anthonykrivonos
- License: mit
- Created: 2018-10-27T22:41:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T02:20:49.000Z (over 7 years ago)
- Last Synced: 2025-02-26T08:36:21.137Z (over 1 year ago)
- Topics: blockchain, client, concurrent, lightweight, python, python3, server, tcp, transactions
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Blockchain - Python
Straightforward and concurrent blockchain implementation in Python 3.
## What's inside?
This project consists of a server script (`server.py`), client code (`client.py`), data models for `block`s and and the `blockchain`, as well as both a client thread (`models/clientthread.py`) and a broadcast thread (`models/broadcastthread.py`).

## Getting Started
### Installing and Running
1. Clone this repository.
2. Open a terminal window and `cd` to the project.
3. Start the server with `python server.py`.
4. Open a new tab in the terminal, and make sure the project is still the root.
5. Start the client with `python client.py`.
6. In the same tab as the client, input commands as follows:
```
-f ### -t ### -a ###
```
where the `###` after each respective command indicates:
- `-f`: fromValue
- `-t`: toValue
- `-a`: transactionAmount
## Contributing
If you'd like to improve and/or expand the content of this library, feel free to submit pull requests. If you experience any issues with this code, please let me know promptly.
## Authors
* **Anthony Krivonos** - *Developer* - [Portfolio](https://anthonykrivonos.com)
* **Jeremy De La Cruz** - *Teammate* - [GitHub](https://github.com/Jeremy523)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
## Acknowledgments
* *Coral Health* for providing the [Code your own blockchain in less than 200 lines of Go!](https://medium.com/@mycoralhealth/code-your-own-blockchain-in-less-than-200-lines-of-go-e296282bcffc) tutorial, which this project is a rough translation of, with numerous extras.
* Vicki Shao for all the support and flames! 🔥