Backup/Restore

To ensure wallets can be securely backed up and restored, users need to create a Secure Encryption Key (SEK). Each user has only one SEK, which is used to encrypt wallet data for backup and decryption during restore.

1. Store Backup Data

  • The SEK is used to encrypt wallet data for backup purposes, call storeBackupData()

  • data: The SEK in ByteArray format to encrypt. Example:

 client.storeBackupData(data: Data)

2. Get Backup Data

  • To restore wallets, call getBackupData() to retrieve the SEK for decryption. Example:

 let data = client.getBackupData()

Last updated