Background
submit_proof accepts any BytesN<32> as the proof hash, including the all-zero value, which is an obvious placeholder rather than a real proof. Reject an all-zero proof hash with Error::InvalidProofHash so empty/placeholder submissions cannot be stored.
Files to modify (2)
- contracts/earn-quest/src/submission.rs
- contracts/earn-quest/src/validation.rs
Acceptance Criteria
Background
submit_proofaccepts anyBytesN<32>as the proof hash, including the all-zero value, which is an obvious placeholder rather than a real proof. Reject an all-zero proof hash withError::InvalidProofHashso empty/placeholder submissions cannot be stored.Files to modify (2)
Acceptance Criteria