## 12. Mining hardware and software

FACTOR's mathematical workload can be performed using general-purpose processors and, for suitable algorithmic stages, GPUs. Mining software can combine several factorization tools, candidate-selection techniques and parallel strategies. Hardware suitability depends on integer size, algorithm, arithmetic efficiency, memory behavior, power consumption and implementation quality.

The project's factoring repository documents a container-based reference miner using YAFU and identifies other relevant software including GMP-ECM and CADO-NFS. A node provides block templates and validation services through RPC. The miner requires an appropriate payout script or address configuration and correct network selection.

CPU and GPU performance are workload-specific. Integer factorization is not equivalent to floating-point throughput, conventional cryptocurrency hash rate or the sum of GPU marketing specifications. No universal GPU speedup, energy advantage, profitability or immunity from specialized hardware is established by the consensus design.

Sources: https://github.com/ProjectFactor/factoring ; https://github.com/ProjectFactor

### Version-specific mining workflow

Synchronize a node, obtain getblocktemplate with required rules including segwit, construct the coinbase and transaction commitments, and derive W. Search offsets within ±16 × d, verify candidate bit length and exact proof conditions, then set nP1 and wOffset and submit the full block through submitblock. Refresh on tip changes: a correct factorization does not make a stale or otherwise invalid block acceptable.

Templates return numeric bits and target, merkleroothash, mintime = parent time + 1 and maxtime. The nonce is unsigned 64-bit. Generic Bitcoin header serializers are incompatible with FACTOR's 218-byte header.

The reviewed factoring repository documents its container/YAFU workflow, including SCRIPTPUBKEY, RPC_USER, RPC_PASS, YAFU_THREADS, YAFU_LATHREADS and MSIEVE_BIN, with python3.10 FACTOR.py inside that environment. Do not combine it with obsolete standalone Python invocation instructions. A payout script is needed, not the miner's private keys. Keep node RPC private and follow the matching miner revision; this website does not supply credentials or execute these commands.

getnetworkhashps estimates accumulated chainwork per elapsed second. It is not a measurement of physical hashes/s, ECM curves/s or GNFS relations/s. Factory is branded infrastructure, not a consensus requirement.

### Engineering references

- [Mining specification](https://github.com/ProjectFactor/FACTOR/blob/main/doc/factor-mining.md) and [benchmark provenance](https://github.com/ProjectFactor/FACTOR/blob/main/doc/factor-benchmarks.md).
- Reviewed [block assembly](https://github.com/ProjectFactor/FACTOR/blob/e224c5277e3ce23677804e0eea6f5c836d30e5eb/src/miner.cpp) and [mining RPCs](https://github.com/ProjectFactor/FACTOR/blob/e224c5277e3ce23677804e0eea6f5c836d30e5eb/src/rpc/mining.cpp).
