Skip to content

tribewarez-pot-o

On-chain PoT-O proof verification and reward distribution.

Program ID: PoToVa1idator11111111111111111111111111111 (placeholder -- will be replaced after deployment)

Instructions

InstructionDescription
initializeCreate PotOConfig account (admin, difficulty, thresholds, rewards)
register_minerCreate MinerAccount PDA for a new miner
submit_proofValidate proof on-chain and credit rewards
adjust_difficultyAdmin: update difficulty, MML threshold, path distance
claim_rewardsMiner: withdraw pending rewards
update_pool_configAdmin: change pool type and swap program
request_swapCPI 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

CodeMessage
ChallengeExpiredChallenge is > 256 slots old
MmlThresholdNotMetMML score exceeds threshold
PathDistanceTooLargeNeural path distance exceeds max
InvalidComputationHashComputation hash mismatch
NoRewardsToClaimNo pending rewards

See How PoT-O Works for the full validation flow.

TribeWarez Blockchain Ecosystem