Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit f962ad4

Browse files
committed
refactor: remove updateVault from GenericEncryptor
1 parent c1ca69a commit f962ad4

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/types.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,6 @@ export type GenericEncryptor = {
6363
* @returns The decrypted object.
6464
*/
6565
decrypt: (password: string, encryptedString: string) => Promise<unknown>;
66-
/**
67-
* Optional vault migration helper. Updates the provided vault, re-encrypting
68-
* data with a safer algorithm if one is available.
69-
*
70-
* @param vault - The encrypted string to update.
71-
* @param password - The password to decrypt the vault with.
72-
* @param targetDerivationParams - The optional target derivation params to
73-
* use for re-encrypting the vault.
74-
* @returns The updated encrypted string.
75-
*/
76-
updateVault?: (
77-
vault: string,
78-
password: string,
79-
targetDerivationParams?: KeyDerivationOptions,
80-
) => Promise<string>;
8166
/**
8267
* Optional vault migration helper. Checks if the provided vault is up to date
8368
* with the desired encryption algorithm.

0 commit comments

Comments
 (0)