Skip to content

Implement payroll proof expiry enforcement #346

Description

@edehvictor

Summary

Add contract checks that reject payroll proof references after their allowed verification window has passed.

Why This Matters

Proofs should not stay valid forever because stale payroll evidence can be replayed after policies, employees, or funding conditions have changed.

Suggested Files

  • contracts/src/proofs.rs
  • contracts/src/payroll.rs
  • contracts/src/errors.rs
  • contracts/tests/proof_expiry.rs

Tasks

  • Define proof expiry fields in payroll verification records.
  • Reject execution when proof expiry is earlier than the current ledger time.
  • Allow fresh proof replacement before payroll settlement.
  • Add tests for fresh proofs, expired proofs, and proof replacement.

Acceptance Criteria

  • Expired proof references cannot execute payroll.
  • Fresh replacement proofs are accepted before settlement.
  • Errors are deterministic for SDK handling.
  • Tests cover boundary expiry timing.

Coordination

Join the Telegram channel for proper coordination: https://t.me/zkpayroll

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