Parent: #135
Summary
RFC 0006 calls for secure payout destination handling. Current payout address storage is plain text and lacks strong lifecycle controls.
Problem
Sensitive payout destinations should be protected at rest and validated to reduce payout and compliance risk.
Proposal
- Add payout address validation:
- Lightning Address format validation on create/update
- normalized lowercase storage format
- Protect at rest:
- encrypt payout destination in DB using application-managed key material
- expose masked value in read APIs/UI (
a***@provider.com)
- Add rotation flow:
- explicit update endpoint with audit log and actor attribution
- optional verification challenge before activation
Acceptance criteria
- Invalid payout destination formats are rejected with clear remediation.
- Stored payout destinations are not plain text.
- Payout destination updates are auditable and masked in operator views.