Function: possessionProven(uint256 proofSetId, uint256, uint256, uint256 challengeCount)
This function verifies that the caller provides the correct number of challenges and sets provenThisPeriod to true for the given proofSetId.
Inputs
proofSetIdControl: Full control.
Constraints:
provenThisPeriod[proofSetId]should be false.Impact: The identifier of the proof set.
challengeCountControl: Full control.
Constraints: Cannot be less than
getChallengesPerProof().Impact: The number of the provided proofs.
Branches and code coverage
Intended branches
provenThisPeriod[proofSetId]has already been set to true.
Negative behavior
The current period has already been proven.
challengeCountis less thangetChallengesPerProof().provingDeadlines[proofSetId]has not been set.provingDeadlines[proofSetId]is less than the currentblock.number.The
challengeWindowhas not started yet.The caller is not a trusted PDPVerifier.