Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions packages/keyring-controller/src/KeyringController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,14 +380,13 @@ export type Encryptor<
*/
decrypt: (password: string, encryptedString: string) => Promise<unknown>;
/**
* Optional vault migration helper. Checks if the provided vault is up to date
* with the desired encryption algorithm.
* Checks if the provided vault is up to date with the desired encryption algorithm.
*
* @param vault - The encrypted string to check.
* @param targetDerivationParams - The desired target derivation params.
* @returns The updated encrypted string.
*/
isVaultUpdated?: (
isVaultUpdated: (
vault: string,
targetDerivationParams?: encryptorUtils.KeyDerivationOptions,
) => boolean;
Expand Down Expand Up @@ -2755,7 +2754,7 @@ export class KeyringController<
#isNewEncryptionAvailable(): boolean {
const { vault } = this.state;

if (!vault || !this.#encryptor.isVaultUpdated) {
if (!vault) {
return false;
}

Expand Down
Loading