X4NOVA Alpha pool protocol v3 – implementer reference, 0.4.0

Transport: TLS 1.2 or newer, verified certificate and hostname, newline-
delimited UTF-8 JSON. Worker requests use JSON-RPC-shaped messages:
{"id":1,"method":"login","params":{"token":"<private>","protocol":"x4nova-pool-v3"}}
Response: id, result, error. Reject a different genesis or network.
Successful login returns authenticated, genesis, mode, worker_id, protocol.
One authenticated worker per connection; maximum request line 8192 bytes.

{"id":2,"method":"getjob","params":{}}
The result includes job_id, header (80 bytes hex), block (full candidate),
height, parent_hash, target (256-bit hex), share_target, seed_hash,
genesis, payouts, coinbase_value_atoms, mode, settlement, fee_basis_points.
The authoritative field names and validation are in pool/work_guard.py,
pool/miner_v3.py and the native getx4novawork RPC implementation.
Managed modes: pplns (100 basis points) and solo-fee (150 basis points).
settlement is pool-wallet. The locally approved config names that pool
address and fee: reject an unapproved recipient, fee or settlement mode.

Verify candidate header, target encoding, parent, coinbase budget and
Merkle binding before hashing. X4NOVA RandomX hashes the entire 80-byte
header, with nonce uint32 little-endian at bytes 76..79. Compare RandomX
digest as a little-endian uint256 with share_target / network target.
The displayed block identifier remains SHA256d(header), reverse hex.
Seed and genesis are network-specific; no Monero blob or CryptoNote nonce.
Refresh expired work and parent changes; jobs expire after 45 seconds.

{"id":3,"method":"submit","params":{"job_id":"<job>","nonce":123,"hashes":456}}
Nonce is an integer from 0 to 4294967295. Optional hashes is telemetry
only. The server recomputes RandomX, validates current parent and token,
deduplicates the header, persists accepted shares and freezes allocations.
Results distinguish accepted, block, verified_share, stale/expired reasons
and durable submission_pending. Acknowledgement can be retried safely.
Do not equate accepted share with a canonical mature block reward.

PPLNS freezes at discovery the last 4096 verified pplns shares, including
the solution. Work weight is floor(2^256 * 10^9 / (share_target+1)).
Fees and all payouts use integer atoms; proportional residual atoms use
deterministic largest-remainder allocation. Owner and payout address are
both accounted for; the same address does not merge different accounts.
Solo allocates net reward to the finder. Confirmation and reorg handling
determine payable credit. Payouts are separate native transactions.

The Alpha endpoint is private; issue a 12-hour revocable worker config
through the authenticated UI. Never embed tokens in source or command
history. The reference miner supports --config and private --stdin.
No direct compatibility claim for Bitcoin ASICs, stock XMRig or other
Stratum dialects. Third-party implementations must implement this format.
Running another independent pool additionally requires its own ledger,
wallet, TLS deployment, payout operations and independent testing.
