[PM-37888] refactor: Remove unused AccountEncryptionKeys wrapper#2861
[PM-37888] refactor: Remove unused AccountEncryptionKeys wrapper#2861matt-livefront wants to merge 2 commits into
Conversation
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the removal of the Code Review DetailsNo findings. Notes from validation:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2861 +/- ##
==========================================
- Coverage 81.25% 81.24% -0.01%
==========================================
Files 1027 1026 -1
Lines 66091 66054 -37
==========================================
- Hits 53699 53668 -31
+ Misses 12392 12386 -6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🎟️ Tracking
PM-37888
📔 Objective
Follow-up to #2780 and #2764, which moved all real consumers off of
AccountEncryptionKeys.encryptedUserKey. This removes theAccountEncryptionKeyswrapper struct since every explicit constructor already passedencryptedUserKey: nil, and the sole consumer of anAccountEncryptionKeysvalue (initializeUserCrypto) only ever readcryptographicState.WrappedAccountCryptographicStatecan be used directly whereverAccountEncryptionKeyswas used.AccountEncryptionKeys; replaceStateService.get/setAccountEncryptionKeyswithget/setAccountCryptographicStatereturning/takingWrappedAccountCryptographicStatedirectlyresponseModel:-based factory ontoWrappedAccountCryptographicStateitself (WrappedAccountCryptographicState+Extensions.swift)AuthRepository,AuthService,SyncService,KeyConnectorService, andAuthenticatorSyncServiceencryptedUserKeystorage inAppSettingsStore(unused since the master-password-unlock key moved toMasterPasswordUnlockResponseModelin [PM-37888] refactor: Read masterKeyWrappedUserKey from masterPasswordUnlock #2780)key: String?fromAccountKeysResponseModelProtocol,ProfileResponseModel, andSetAccountKeysResponseModel.IdentityTokenResponseModel.keyis kept — it's still used inAuthService.unlockMethod(for:)for the key connector unlock path