Skip to content

v0.2.0 - Core Contract Protocol Recovery & Invariant Resilience

Latest

Choose a tag to compare

@OLAMIGHTY010 OLAMIGHTY010 released this 09 Nov 15:01
· 1 commit to main since this release
b0aee6f

SubPath Core Contract v0.2.0

Comprehensive protocol correctness, lifecycle security, and property test verification release following engineering recovery:

Security & Invariants

  • Enforced initialization guard in create_plan with Error::NotInitialized = 11.
  • Guarded initialize against re-invocation (Error::AlreadyInitialized = 1).
  • Enforced monotonic, non-overwriting next_plan_id counter increments.
  • Enforced subscription lifecycle: paused subscriptions reject subscribe with Error::SubscriptionPaused = 10.
  • Verified resubscription semantics: canceled subscriptions permit fresh subscription instances.
  • Added timestamp arithmetic saturation protection (saturating_add) preventing overflow vulnerabilities.

Property & Invariant Testing

  • Added comprehensive property invariant fuzz tests verifying multi-cycle lapse catchup and window rollover.
  • Contract test suite expanded from 12 to 21 automated tests (100% passing).
  • Deterministic test snapshots recorded for all test cases.

Toolchain & Build Artifacts

  • Built targeting wasm32v1-none with Soroban SDK v28.
  • Optimized WASM build hash: 29a766a7fd0ca390510d090db1713094bfc9952337cca682f2b4d7bfc9f414c9 (7,448 bytes).