How mining works on XPrivFi
Mining is split into two parts: a clear, deterministic Layer-1 protocol and a round-based HexGrid Layer-2 where people actually participate.
Layer-1: PoW and block production
At the protocol level, XPrivFi uses interactive Proof-of-Work (iPoW) secured by the RandomHash function and CP-Diff difficulty targeting. The goal is to keep block production steady at around six minutes.
The full node validates a canonical block header, runs RandomHash, checks the target, and enforces the supply and reward schedule. From the nodeβs perspective there is no game, tiles or UI β only valid or invalid blocks.
Layer-2: HexGrid mining rounds
HexGrid is the Layer-2 mining system that sits between people and the node. Rounds, tiles and the browser miner all live here.
- Each round gathers between 200 and 890 participants.
- Everyone joins through the browser miner using a simple grid UI.
- Each participant chooses a tile (visual only, for the UI and round flow).
- During the round, the browser performs controlled work and reports progress back to HexGrid.
- When the round closes, HexGrid selects exactly one winner.
- HexGrid then instructs the backend node to mine and submit the block that carries the block reward.
Equal-chance rounds
HexGrid turns mining into rounds where the important part is taking part, not buying more hardware. The work done in the browser is designed for fairness and participation, not for creating a separate hashpower race.
- All participants in a round aim for the same outcome: one winning slot.
- The node still applies the same PoW rules to the final block.
- The round size (200β890) grows the anonymity and fairness set.
- People see a clear start, active phase and result instead of a constant invisible hash stream.
Browser miner and pool
The browser miner is the interface. The HexGrid pool is the service that coordinates rounds and talks to the node.
- Browser miner β connects to HexGrid APIs, shows the grid, tracks the current round and sends work updates.
- HexGrid pool β manages the round state machine (lobby, active, closing), records who joined, and picks the winner.
- Node β runs RandomHash iPoW, builds the block and enforces consensus exactly as described in the architecture and specs.
Fees
Mining on HexGrid launches without participation fees. If XPF later becomes traded on external markets, a Layer-2 fee model may be added around HexGrid. Any such fee:
- lives in the HexGrid Layer-2 logic,
- does not change the total supply of XPF,
- does not modify Layer-1 consensus rules.
Further details
This page describes the mining flow at a high level. Exact formulas, edge cases and security considerations are documented in the Specs and Developer Docs. Those documents should be treated as the technical reference for implementation and review.