Skip to content

Differential test harness: stealth-registry vs reference impl #110

Description

@truthixify

Extra labels: test
Tier: M (2-4 days) | Type: test

Context. Property-based tests already cover invariants inside the contract. Differential tests compare the on-chain behavior against a pure-Rust reference impl for every operation. Catches regressions from optimization passes (see #7).

Scope.

  • Reference impl under stealth-registry/tests/reference/.
  • proptest generator emits sequences of ops; runs both, asserts identical final state + emitted events.
  • Cover: register, revoke, expire, re-register.

Acceptance.

  • cargo test --test differential passes with 1024 cases in normal CI, 16384 in nightly
  • Reference impl documented as normative for expected semantics
  • Failures print a minimized reproduction

Files. stealth-registry/tests/differential.rs (new), stealth-registry/tests/reference/mod.rs (new).

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdripsFunded via Drips Networkhelp wantedExtra attention is neededstellarTouches Stellar / Soroban codetestTest coverage / harness

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions