KEY / 03

The key: your mining challenge.

The key is the per-wallet challenge issued by the Zecloud mining rewards contract at 0xa7a8861940B1617816cFF259d30b46df1a49cF79. Every wallet gets a different key for every epoch, so proofs can never be copied between miners.

Challenge

The desk reads challengeFor(wallet, epoch) directly from the contract before a session starts. When the epoch changes, the key changes and the desk fetches a fresh one automatically.

key = challengeFor(wallet, currentEpoch())
target = difficultyTarget()

Nonce

The nonce is the only value your browser changes. It counts upward in batches; each nonce produces one candidate that is checked against the target.

Claim

When a candidate is valid, the wallet sends claim(epoch, nonce). The contract rebuilds the proof, rejects reused proofs and repeat claims in the same epoch, then pays rewardPerProof() in WZEC.

  • One claim per wallet per epoch
  • Each proof can be used only once
  • Claims stop while the contract is paused