tribewarez-pot-o
On-chain PoT-O proof verification and reward distribution.
Program ID: PoToVa1idator11111111111111111111111111111 (placeholder -- will be replaced after deployment)
Instructions
| Instruction | Description |
|---|---|
initialize | Create PotOConfig account (admin, difficulty, thresholds, rewards) |
register_miner | Create MinerAccount PDA for a new miner |
submit_proof | Validate proof on-chain and credit rewards |
adjust_difficulty | Admin: update difficulty, MML threshold, path distance |
claim_rewards | Miner: withdraw pending rewards |
update_pool_config | Admin: change pool type and swap program |
request_swap | CPI to tribewarez-swap for token conversion |
Accounts
- PotOConfig PDA
[b"pot_o_config"]: global settings - MinerAccount PDA
[b"miner", pubkey]: per-miner stats - ProofRecord PDA
[b"proof", challenge_id]: per-proof record
Errors
| Code | Message |
|---|---|
| ChallengeExpired | Challenge is > 256 slots old |
| MmlThresholdNotMet | MML score exceeds threshold |
| PathDistanceTooLarge | Neural path distance exceeds max |
| InvalidComputationHash | Computation hash mismatch |
| NoRewardsToClaim | No pending rewards |
See How PoT-O Works for the full validation flow.