aries-mediator-dotnet / net.globalid.aries.mediator.dotnet.backup / DotnetBackupManager / restoreLocalBackup

restoreLocalBackup

abstract fun restoreLocalBackup(internalDirectoryPath: String, input: InputStream, keySeed: String, configuration: WalletConfiguration, credentials: WalletCredentials): Single<String>

Restores a local backup backed by the input stream, using the provided keySeed to decrypt the backup. To use the restored backup, you must open the wallet with the returned ID.

Parameters

internalDirectoryPath - to copy the backup to.

input - is an InputStream to read the backup from.

keySeed - is the seed used for backup.

configuration - are the new WalletConfiguration to use for the restored wallet.

credentials - are the new WalletCredentials to use for the restored wallet.

Return
Single of a String, the restored wallet ID.