aries / net.globalid.aries.backup / BackupService

BackupService

interface BackupService

Backup service for local backup and restore.

Functions

createBackup

Creates a wallet backup in the provided directory.

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

restoreBackup

Restores a backup from the given information. Note that the seed must be the one used to create the backup! If you want to use the new wallet, you have to create a new Agent instance with a reference to the new wallet.

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

Inheritors

DefaultBackupService

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

class DefaultBackupService : BackupService