Skip to main content

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, or tmux
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fiducia-miner-1.0.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fiducia_miner-1.0.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file fiducia-miner-1.0.0.tar.gz.

File metadata

  • Download URL: fiducia-miner-1.0.0.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

Hashes for fiducia-miner-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f003d52aee2efda8b638b21253771d12f3ef8d934aedc5bc6912c28206c1f439
MD5 2cf6d4cb77d317a98d52dcb006577277
BLAKE2b-256 4f7daf4510f4a9d66e546eeb88127a54e7ca97d90a81011a887eb933f95169bb

See more details on using hashes here.

File details

Details for the file fiducia_miner-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: fiducia_miner-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for fiducia_miner-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be84697acb557db8a4adf061ee16dc14bfd55e11697e9fa302d756cc4f0d88f4
MD5 5906d00265a9de8b3388e98a83dad56c
BLAKE2b-256 1a2820c16586a0cd59384160e7411fcad95be2d271de8fe787a593e4a1cf44b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page