aries / net.globalid.aries.backup / DefaultBackupService

DefaultBackupService

class DefaultBackupService : BackupService

See BackupService. Uses indy-sdk to export/import the wallet.

Constructors

<init>

See BackupService. Uses indy-sdk to export/import the wallet.

DefaultBackupService()

Functions

createBackup

See BackupService.createBackup. To create a backup, the following is done:

fun createBackup(agent: Agent, directory: String): Single<BackupInfo>
fun createBackup(agent: Agent, directory: String, keySeed: String): Single<BackupInfo>

restoreBackup

See BackupService.restoreBackup. Uses the provided key seed to derive the export key that was used when exporting the backup. Backup is imported from a file from info, but it is not deleted in case anything goes wrong; otherwise, irreversible damage may be done.

fun restoreBackup(restoreInfo: RestoreInfo): Single<String>