Description
Add TOTP-based 2FA for sensitive wallet operations (withdrawals, key rotations, high-value payments). Currently wallet security relies solely on single-factor authentication.
Acceptance Criteria
Technical Scope
- backend/src/services/2fa-service.ts
- backend/src/routes/2fa.ts
- frontend/components/auth/TwoFactorSetup.tsx
- frontend/components/auth/TwoFactorVerification.tsx
- Edge: clock drift tolerance, recovery code usage tracking, concurrent 2FA setup
Description
Add TOTP-based 2FA for sensitive wallet operations (withdrawals, key rotations, high-value payments). Currently wallet security relies solely on single-factor authentication.
Acceptance Criteria
Technical Scope