Simple Python blockchain implementation.
Project description
StupidBC
StupidBC is a simple Python implementation of a blockchain.
Installation
Use the package manager pip to install StupidBC.
pip install StupidBC
Usage
from blockchain import BlockChain
bc = BlockChain()
for i in range(10):
new_block = blockchain.create_block(f"Lucas é um gostoso!")
bc.mine(new_block)
bc.add_block(new_block)
print(blockchain._chain)
Running Tests
In the terminal, run the following command
pytest
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Acknowledgments
- Lucas Santos - Implemented a blockchain in typescript - khaosdoctor
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
StupidBlockChain-1.0.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for StupidBlockChain-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d7fed695b5356e445e4ff0948f3bb45a40d7162cb77d28926e652f23753e518 |
|
MD5 | ddbc987865ff8025390f99bfbe425323 |
|
BLAKE2b-256 | 70a5d95e33df4cbb2c18e5508935256c47809e907e427422708dde4252f07735 |