Second edition of Project Babbage, create a blockchain from scratch.
Project description
Babbagecoin
The project babbage proof of work blockchain.
Visit the github page for a nice overview of the project !
Requirements
Install docker, docker-compose and python3.8 or above. You also need 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)
Run locally the master or miner:
make (master | miner)
There are also VSCode actions for debugging each one of them.
Interact with the blockchain
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 (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
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
Built Distribution
Hashes for babbagecoin-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e6f4a79e034e6979fb59d1723b05f3480ef40103015d8c9cc2632c534d471d8 |
|
MD5 | 614ffd348233d098d64cc3806b2d2c79 |
|
BLAKE2b-256 | 20d0091b56cb3ed233ab30c4245fcce08314ce8cf05cf2fc2ac560a64b22a265 |