Skip to content

Improvement: contract fuzz/invariant tests for check_claim and batch atomicity #417

Description

@Psalmuel01

Contracts have unit tests but no fuzz/invariant coverage of the trickier logic (threshold comparisons, batch all-or-nothing, expiry transitions).

Scope

  • Add fuzz tests over check_claim threshold boundaries and trusted_issuers combinations.
  • Add invariant tests: a batch either fully applies or fully reverts; a revoked or expired proof never reads valid; counters (if added) never go negative.
  • Run in CI.

Value

Higher confidence in the security-critical read/write paths.

Acceptance

  • Fuzz/invariant tests cover check_claim boundaries and batch atomicity, running in CI.

Activity

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programcontractsSoroban/Rust contract workmediumModerate complexity

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions