Babbagecoin
An understandable proof of work blockchain.
Visit our web page for a nice general overview of the project !
Quickly run a node !
pip install --user babbagecoin
python -m babbagecoin master
# then in another terminal:
python -m babbagecoin miner
For development
Requirements
Install docker and docker-compose, python3 (>=3.9) and poetry.
Run poetry install then poetry shell
Launch
Run the node (master + miner):
make
Stop the node properly:
make stop --> to stop all containers if you didn't stopped them properly (if you did two Ctrl+C in a row)
Or you can run separately the master or miner:
make (master | miner)
There are also VSCode actions for debugging each one of them (even the tests, run in terminal with make test)
Interact with the blockchain
!! Important
Configure your blockchain by creating a .env file on the same model as what's in .env.example.
The wallet will generate a private key for you, save it to private.key.<CURRENT_USER>, and reuse it afterward. A public key is derived from this private key. The hash of the public key is your address, for example e93417c7 (the first 8 characters). The wallet is managing only one private key at the time.
Transactions
Use the bbc.sh script (chmod +x it first):
./bbc.sh tx MARTIAL 10 0.3 --> sending 10BBC with 0.5BBC fees to MARTIAL
make tx is a shortcut for the above command
Balance
./bbc.sh balance to get your wallet balance
make balance is a shortcut for the above command
Metadata
Release files for babbagecoin 0.5.0
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 | |
|---|---|---|---|---|
| babbagecoin-0.5.0.tar.gz | 47.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| babbagecoin-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 98.0 kB
Release files / babbagecoin-0.5.0.tar.gz
| Download URL | babbagecoin-0.5.0.tar.gz |
|---|---|
| Size | 47.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
886d2dc9513cccc6563c97f485382443c1bd24e384566061e976f0e052ed09f6
|
|
BLAKE2b-256 checksum How to use checksums |
3b804e0634588e160018f950fadf1cd7def65fe7f4c6efbe0410ace3c232ced4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.10.4 Linux/5.15.0-47-generic
|
Release files / babbagecoin-0.5.0-py3-none-any.whl
| Download URL | babbagecoin-0.5.0-py3-none-any.whl |
|---|---|
| Size | 50.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c15baecd92067bbb3837b1ba5f833e1b956bf2cb3f6a359583a4c187bb956b55
|
|
BLAKE2b-256 checksum How to use checksums |
54ed5ab302e104dd6ee15e055ba647020bb895b78084aec4468775d65056e94e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.0 CPython/3.10.4 Linux/5.15.0-47-generic
|
Security for babbagecoin 0.5.0
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.