aries-mediator-dotnet / net.globalid.aries.mediator.dotnet.backup / DefaultDotnetBackupService / createBackupStoreMessage

createBackupStoreMessage

fun createBackupStoreMessage(input: InputStream, keySeed: String): Single<StoreBackupMessage>

See DotnetBackupService.createBackupStoreMessage. Creates a backup store message from a local backup result. This involves creating a key pair used for message signatures from the seed used for backup. A temporary wallet is used so that the message can be constructed multiple times if needed (e.g. error when sending). The following is done:

  1. A new temporary wallet is created to successfully generate a key pair.
  2. The wallet bytes are signed using the key pair.
  3. The temporary wallet is deleted