|
| 1 | +# ⛏️ Mastering the RustChain Miner: Hardware Fingerprints & Dual-Mining v2.0 |
| 2 | + |
| 3 | +RustChain isn't just another Proof-of-Work (PoW) coin. It uses **RIP-PoA (Hardware Fingerprint Attestation + Serial Binding)** to ensure that one CPU equals one vote, preventing large-scale farm domination. |
| 4 | + |
| 5 | +This guide covers how to set up and optimize the **Linux Ryzen Miner (v2.0)** for maximum efficiency. |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | +## 🏗️ 1. The Core Architecture |
| 10 | +The miner is built on Python 3 but interacts directly with the Linux kernel via `/sys/class/dmi/` to bind your mining identity to your hardware serial number. |
| 11 | + |
| 12 | +### Hardware Binding |
| 13 | +The miner attempts to fetch your serial from: |
| 14 | +1. `/sys/class/dmi/id/product_serial` |
| 15 | +2. `/sys/class/dmi/id/board_serial` |
| 16 | +3. Fallback: `/etc/machine-id` (First 16 characters) |
| 17 | + |
| 18 | +**Tip:** If you are running in a VM, the serial might return `None`. For maximum yield, run on **Bare Metal** to pass the RIP-PoA attestation. |
| 19 | + |
| 20 | +--- |
| 21 | + |
| 22 | +## 🛡️ 2. RIP-PoA Fingerprint Checks |
| 23 | +To mine on the mainnet, your machine must pass **6 hardware fingerprint checks**. These include: |
| 24 | +- **DMI Table Validation:** Ensures the BIOS info matches the CPU architecture. |
| 25 | +- **Cache Latency Check:** Detects virtualization or "noisy neighbor" environments. |
| 26 | +- **Instruction Set Verifier:** Confirms the presence of required AVX/AES-NI extensions. |
| 27 | + |
| 28 | +If these checks fail, your attestation will be invalid, and your blocks will be rejected by the node. |
| 29 | + |
| 30 | +--- |
| 31 | + |
| 32 | +## ⚡ 3. Dual-Mining with Warthog (Sidecar) |
| 33 | +The v2.0 miner includes the **WarthogSidecar**. This allows you to mine RustChain (CPU) and Warthog (GPU/CPU) simultaneously without context-switching overhead. |
| 34 | + |
| 35 | +### Configuration |
| 36 | +Pass these flags to the `LocalMiner` class or your CLI wrapper: |
| 37 | +- `wart_address`: Your Warthog wallet address. |
| 38 | +- `wart_pool`: The stratum URL for your preferred Warthog pool. |
| 39 | +- `bzminer_path`: Path to your BZminer binary. |
| 40 | + |
| 41 | +--- |
| 42 | + |
| 43 | +## 🚀 4. Optimization Tips |
| 44 | +- **Python Warnings:** The miner ignores `Unverified HTTPS` warnings for self-signed node certificates. This is normal but ensure your `NODE_URL` is set to `https://rustchain.org`. |
| 45 | +- **Entropy Management:** The miner tracks `last_entropy` to ensure your PoW isn't being "pre-calculated" on a different machine. |
| 46 | +- **Log Leveling:** Use `color_logs.py` (if available) to visually distinguish between `[FINGERPRINT]` passes and `[PoW]` shares. |
| 47 | + |
| 48 | +--- |
| 49 | + |
| 50 | +*Written by RematNOC - Contributing to the RustChain Ecosystem.* |
0 commit comments