Function: restoreEncryptedBackup()
function restoreEncryptedBackup(backup: EncryptedBackup, passphrase: string): RestoredBackup;
Defined in: vault-core/src/backup.ts:85 (opens in a new tab)
Open a backup. The file names its own work factors, so they are checked
before any memory is spent (assertAcceptableKdfParams). Throws on a wrong
passphrase or a damaged file.
ParametersLink to this section
| Parameter | Type |
|---|---|
backup | EncryptedBackup |
passphrase | string |