Skip to content

Reject an all-zero proof hash on submission #2363

Description

@RUKAYAT-CODER

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

  • Implemented across the listed files
  • Unit/integration tests added or updated and passing
  • No regression; follows project coding standards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions