Skip to content

feat: add end-to-end privacy integration test suite - #895

Merged
Calebux merged 1 commit into
Calebux:mainfrom
JoyAdah:feat/privacy-integration-tests-863
Jun 23, 2026
Merged

feat: add end-to-end privacy integration test suite#895
Calebux merged 1 commit into
Calebux:mainfrom
JoyAdah:feat/privacy-integration-tests-863

Conversation

@JoyAdah

@JoyAdah JoyAdah commented Jun 23, 2026

Copy link
Copy Markdown

Summary

  • Added 6 integration test scenarios covering all privacy features working together
  • Stealth renewal: create subscription → derive stealth addresses → verify payments are unlinkable
  • Encrypted storage: encrypt subscription data → verify on-chain blob is opaque → decrypt locally → verify match
  • ZK proof flow: create Pedersen commitments → verify on-chain → confirm no amount leakage
  • Payment channel: open channel → N off-chain renewals → close → verify only 2 on-chain txs
  • Private audit log: log events as commitments → build Merkle tree → selective disclosure via proofs
  • Full privacy mode: enable all features → full subscription lifecycle → audit on-chain footprint
  • Added CI workflow (privacy-tests.yml) that runs on PRs touching contracts/ or shared/src/crypto/

Closes #863

Test plan

  • All 6 test scenarios pass locally with npx vitest run tests/privacy/
  • CI workflow triggers on PRs touching contracts/ or shared/src/crypto/
  • Each test file is independently runnable
  • Full privacy mode test verifies only 2 on-chain transactions for 12 renewals

🤖 Generated with Claude Code

Add 6 integration test scenarios covering all privacy features:
- Stealth renewal: verify payments are unlinkable via unique addresses
- Encrypted storage: verify on-chain data is opaque, decryptable locally
- ZK proof flow: verify Pedersen commitments hide amounts, are verifiable
- Payment channel: verify only 2 on-chain txs for N renewals
- Private audit log: verify Merkle proofs enable selective disclosure
- Full privacy mode: lifecycle test combining all features

Includes CI workflow that runs privacy tests on PRs touching
contracts/ or shared/src/crypto/.

Closes Calebux#863

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@JoyAdah
JoyAdah requested a review from Calebux as a code owner June 23, 2026 21:07
@drips-wave

drips-wave Bot commented Jun 23, 2026

Copy link
Copy Markdown

@JoyAdah Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Calebux
Calebux merged commit b9fc751 into Calebux:main Jun 23, 2026
20 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P2] Privacy: End-to-end integration test suite for privacy features

3 participants