# Catholic Coin (CATH) pool integration

CATH is a standalone mainnet operated under the LAJKTO brand. Mother Teresa Blockchain uses SHA-256d, Scrypt and RandomX in one Holy Trinity Protocol chain. The genesis hash is `699935a24cc576ea28fce38dfe5bd2ad3dc3ca6454d75be6d0dacb7d55326ddb`. A node must also report mainnet, rules version 1 and staking activation height 10000.

## Set up an independent parish

1. On Ubuntu 24.04 x86_64, install Python 3.12, CA certificates, libzmq5, libunbound8, libboost-thread1.83.0, libusb-1.0-0, libsodium23, libnettle8t64 and libreadline8t64. Install unzip for the ZIP distribution.
2. Follow the node guide to run two independent native ledgers, their HTTPS followers and the local reciprocal followers. Test a round in both directions with a separate operator. The public HTTPS peer provides downloads to followers. Arrange for an upstream peer to follow your endpoint as well so other pools can import your work.
3. Configure the pool's own payout wallet with the provision command from the operator guide. Check the signed ownership statement, genesis, fee address and rates. The reference setup places signing keys, wallet password and accounting on the operator's own machine.
4. Start the Stratum and settlement processes on your host. Compare your tip with the public peers, then test shared and SOLO job delivery on all three ports before advertising them.

[Operator starter kit](https://lajkto.eu/cath/downloads/CATH-Operator-1.0.0-rc1.zip) · [Official pool](https://lajkto.eu/cath/mainnet/pool/?lang=en) · [Signed fee policy](https://lajkto.eu/cath/mainnet/pool-payout-owner.json)

## Miner connections

| Port on the official pool | Lane | Protocol | First messages |
|---|---|---|---|
| 46.36.37.246:43433 | SHA-256d | Stratum V1 | mining.subscribe, mining.authorize, mining.notify, mining.submit |
| 46.36.37.246:43434 | Scrypt | Stratum V1, scrypt-1024-1-1 | mining.subscribe, mining.authorize, mining.notify, mining.submit |
| 46.36.37.246:43435 | RandomX | XMRig rx/0 | login, job, submit |

Use a CATH mainnet payout address with an optional `.worker` suffix. Supply password `x` for shared mining and `solo` for SOLO. Classic shares use the job timestamp, a four-byte extranonce2 and the job's nonce. For RandomX, read the blob, job ID, seed and target supplied by the server. Pool fees are 1% shared and 2% SOLO. The reference ledger carries miner credits across lanes, modes and rounds. Payment eligibility begins at a net 20 CATH per destination and 60 confirmations of the last block of a round. The network fee is paid out of the founder commission.

## HTTPS read API

Base URL: `https://lajkto.eu/cath/mainnet/native-peer.php`. Use HTTP GET with `node=a` or `node=b`. Responses contain the network, genesis, staking height, rule version and result. Native header heights start at zero.

| Action | Parameters | Result |
|---|---|---|
| tip | node | Current native block header |
| header | node, height | Header at a specified height |
| headers | node, height | Up to 60 consecutive headers |
| hash | node, hash | Active-chain header by block hash |
| round | node, height, parent | Complete closed round and associated transactions, starting at the given height after the specified parent |

[Public peer A](https://lajkto.eu/cath/mainnet/native-peer.php?node=a&action=tip) · [Public peer B](https://lajkto.eu/cath/mainnet/native-peer.php?node=b&action=tip) · [Live per-lane statistics](https://lajkto.eu/cath/mainnet/pool-data/status.json)

## Local node RPC and Stratum adapter

Call JSON-RPC 2.0 on your local native daemon, for example `http://127.0.0.1:39471/json_rpc` for replica A. Read `get_info`, `get_block_header_by_height` and `get_block` to verify network identity and confirmed transactions. The public wallet gateway accepts a limited set of wallet methods. Mining and round import use the operator's own daemon.

The reference pool asks `get_cath_mining_job` for a lane mask and payout addresses. A full round has mask 7 and lanes 0, 1 and 2 in SHA-256d, Scrypt and RandomX order. Retain each member's template, commitment and target. After checking shares, submit the matched templates and native proofs with `submit_cath_mining_round`. The reference implementation is in `pool/engine/klienti/pool/native_pool.py` and the miner-facing server in `public_pool.py` and `pool.py`. Follow complete rounds using `get_cath_round` and verify them locally with `import_cath_round`. Use the existing peer client to handle a competing branch.

Record a miner's accepted shares and winning share in the persistent ledger. Verify payouts by looking up the transaction and checking its inclusion in a canonical block on both replicas. The fee policy is signed by the independent operator's wallet. The published founder address and both rates accompany it.

