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.
Files. stealth-registry/tests/differential.rs (new), stealth-registry/tests/reference/mod.rs (new).
Extra labels:
testTier: 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.
stealth-registry/tests/reference/.Acceptance.
cargo test --test differentialpasses with 1024 cases in normal CI, 16384 in nightlyFiles.
stealth-registry/tests/differential.rs(new),stealth-registry/tests/reference/mod.rs(new).