A mining client for Fiducia blockchain
Project description
Fiducia Mining Client
A Python package for mining Fiducia blockchain.
Installation
From PyPI
pip install fiducia-miner
From Source
git clone https://github.com/yourusername/fiducia-miner.git
cd fiducia-miner
pip install -e .
Requirements
- Python 3.6+
- No external dependencies required!
Quick Start
After installation, you can run the miner with just your wallet address:
fiducia-miner --miner-address YOUR_WALLET_ADDRESS
What's Included?
This package contains a complete, standalone implementation of the Fiducia blockchain miner. It includes:
- A full blockchain implementation with Proof of Work mining
- SQLite database storage for blocks and transactions
- Mining rewards sent to your wallet address
- API and dashboard simulation
- P2P network capabilities (simulation)
Usage
usage: fiducia-miner [-h] --miner-address MINER_ADDRESS
[--db DB] [--p2p-port P2P_PORT] [--api-port API_PORT]
[--connect-to CONNECT_TO] [--mining-threads MINING_THREADS]
[--clean]
Fiducia Blockchain Mining Client
options:
-h, --help show this help message and exit
--miner-address MINER_ADDRESS
Address to receive mining rewards
--db DB Database filename (default: mining.db)
--p2p-port P2P_PORT P2P port (default: 8333)
--api-port API_PORT API port (default: 8545)
--connect-to CONNECT_TO
Connect to an existing node (format: host:port)
--mining-threads MINING_THREADS
Number of mining threads (default: 1)
--clean Clean existing data before starting
Features
- Self-contained blockchain implementation
- No external repository or Git required
- SQLite database for persistent storage
- Multi-threaded mining capability
- Configurable P2P and API ports
- Node connection support
- Clean data option for fresh start
Examples
Basic Mining
fiducia-miner --miner-address 1A2B3C4D5E6F7G8H9I0J
Mine with Custom Settings
fiducia-miner --miner-address 1A2B3C4D5E6F7G8H9I0J \
--db custom_blockchain.db \
--p2p-port 9000 \
--api-port 9001 \
--mining-threads 4
Connect to Existing Node
fiducia-miner --miner-address 1A2B3C4D5E6F7G8H9I0J \
--connect-to 192.168.1.100:8333
Clean Installation
fiducia-miner --miner-address 1A2B3C4D5E6F7G8H9I0J --clean
Dashboard Access
Once the miner is running, a simulated dashboard is available at:
http://localhost:8545/dashboard
(Or whichever API port you specified with --api-port)
Data Storage
All blockchain data is stored in:
~/fiducia-miner-data/
This includes your blockchain database and related files.
Notes
- All mining rewards will be sent to the address specified with --miner-address
- The miner runs in the foreground by default; use Ctrl+C to stop
- To run in the background, consider using tools like
nohup,screen, ortmux - The default difficulty is set to 4 leading zeros for faster mining
- Mining rewards are set to 50 FID per block
Development
To develop on this package:
git clone https://github.com/yourusername/fiducia-miner.git
cd fiducia-miner
pip install -e .
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fiducia-miner-0.1.2.tar.gz.
File metadata
- Download URL: fiducia-miner-0.1.2.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f664f30b2dda09eab666fbb24f9620dd382fe12c4c1528f65c5d3f5c2715fe5
|
|
| MD5 |
ea5dd1fbb774b4ba4148e7697fb19ab2
|
|
| BLAKE2b-256 |
a9a117671764d9b39fce114c63e6ef3fe5f5bd00d6234890c337405bb11d23c2
|
File details
Details for the file fiducia_miner-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fiducia_miner-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd3ff4232dd43dd53a7c863e7fa3cf247c277bd85d1285fe8a0f97298a09f165
|
|
| MD5 |
bbe1494782be6f26f2f3f030b6b3a90f
|
|
| BLAKE2b-256 |
59267670db50b6b70511337c33f52f2e36996a32cafd5e06c1d8891f4e03545e
|