Problem Statement
contracts/gdpr/lib.rs.tests for withdraw_consent exist but no clean-up of derived data (timelines, audit hashes).
Why it matters
GDPR Article 17 — right to erasure — requires that all derived identity traces become unreachable.
Technical Context
Add tests asserting: after withdraw_consent, (subject, purpose) returns false; cross-references in audit log are tombstoned; storage is reclaimable.
Expected Outcome
Withdraw consent purges all derived references.
Acceptance Criteria
cargo test -p propchain-gdpr includes 5 new withdrawal cases.
- Tombstone coverage documented.
- New
tests/gdpr_erasure.rs.
- SDK updated.
Implementation Notes
Add explicit withdraw_consent test vectors.
Files or modules likely to be affected
contracts/gdpr/lib.rs, tests/.
Dependencies
None.
Difficulty level
MEDIUM.
Estimated effort
M (~2 days).
Problem Statement
contracts/gdpr/lib.rs.tests forwithdraw_consentexist but no clean-up of derived data (timelines, audit hashes).Why it matters
GDPR Article 17 — right to erasure — requires that all derived identity traces become unreachable.
Technical Context
Add tests asserting: after
withdraw_consent,(subject, purpose)returns false; cross-references in audit log are tombstoned; storage is reclaimable.Expected Outcome
Withdraw consent purges all derived references.
Acceptance Criteria
cargo test -p propchain-gdprincludes 5 new withdrawal cases.tests/gdpr_erasure.rs.Implementation Notes
Add explicit
withdraw_consenttest vectors.Files or modules likely to be affected
contracts/gdpr/lib.rs,tests/.Dependencies
None.
Difficulty level
MEDIUM.
Estimated effort
M (~2 days).