Basic cryptocurrency, based on blockchain, implemented in Python.
- [basic-blockchain](#basic-blockchain)
- [Getting Started](#getting-started)
- [Installation](#installation)
- [Use (default web implementation)](#use-default-web-implementation)
- [Development](#development)
- [Roadmap](#roadmap)
- [License](#license)
## Getting Started
### Installation
```
pip install bbchain
```
### Use (default web implementation)
```bash
# Start (default port 8000)
bbchain --start
# Start with selected host/port
bbchain --start --host 127.0.0.1 --port 8002
# Select other nodes to connect
bbchain --start --nodes ip1:port1,ip2:port2
# Add data to the blockchain
bbchain --add "data to storage" --nodes ip1:port1
# Maintenance
## Clean local storage
bbchain --clean
## Show local data
bbchain --print
```
## Development
```bash
git clone https://github.com/jepemo/basic-blockchain.git
cd basic-blockchain
python3 -m venv venv
source venv/bin/activate
pip install -e .
bbchain --help
```
Execute tests:
```
python3 setup.py test
```
[Some Blockchain implementation readings](docs/readings.md)
## Roadmap
- More tests
- Implement real consensus algorithms
- Improve default http implementation (better sync, etc.)
- Some examples: cryptocurrency, etc.
- Allow to save non-textual data
## License
[GNU GPLv3](LICENSE)
Permissions of this strong copyleft license are conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights.
Metadata
Release files for bbchain 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bbchain-0.1.tar.gz | 9.7 kB | Without provenance | Details for bbchain-0.1.tar.gz |
Release files / bbchain-0.1.tar.gz
| Download URL | bbchain-0.1.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9db3a7385ef19e388e73f6940de3dbf121e6611735ae5391d4646ba20055712e
|
|
BLAKE2b-256 checksum How to use checksums |
4e80fb694249ddcad1b07dd69d5ea019857ceffeb86b8393845699b5d0e26a6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for bbchain 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.