diff --git a/bindings/backup.go b/bindings/backup.go index 367c70292303d623ebd6a685b425d10014b47fb3..b282df56daeca46373c4d14adaa5f83c425db9d9 100644 --- a/bindings/backup.go +++ b/bindings/backup.go @@ -32,12 +32,13 @@ type UpdateBackupFunc interface { //////////////////////////////////////////////////////////////////////////////// // NewCmixFromBackup initializes a new e2e storage from an encrypted -// backup. +// backup. Users of this function should delete the storage directory on error. +// Users of this function should call LoadCmix as normal once this call succeeds. // // Params // - ndfJSON - JSON of the NDF. // - storageDir - directory for the storage files. -// - sessionPassword - password used in LoadCmix. +// - sessionPassword - password to decrypt the data in the storageDir. // - backupPassphrase - backup passphrase provided by the user. Used to decrypt backup. // - backupFileContents - the file contents of the backup. //