aries-mediator-dotnet / net.globalid.aries.mediator.dotnet.backup / DefaultDotnetBackupManager / restoreRemoteBackup

restoreRemoteBackup

fun restoreRemoteBackup(agent: Agent, keySeed: String, configuration: WalletConfiguration, credentials: WalletCredentials): Single<String>

See DotnetBackupManager.restoreRemoteBackup.

Fetches the backup from the mediator and writes the backup to a file (required by indy-sdk). After that, continues as if restoring a local backup.

Note: this does not delete the agent's current wallet. If you want to use the restored wallet, you have to open the wallet first and create a new Agent instance.