✳ Lambatoken / Mobile DocsAUTH 0.7.0 · WALLET 0.2.0
Wallet / 14

Wallet backups and recovery

Protect wallet key material with a passphrase-encrypted backup and verify recovery before destructive changes.

Create cloud backup

Sync the wallet first. Collect a strong separate backup passphrase. SDK encrypts locally, uploads the encrypted blob and metadata and refreshes the wallet record. The passphrase is not sent to the backend.

typescript
await sdk.uploadPassphraseBackup(localWalletId, passphrase);

Restore backup

Authenticate as the owner. Select the server wallet record and supply its backendWalletId plus passphrase. SDK downloads, parses, restores and syncs. Check the restored address before marking recovery complete.

typescript
const result = await sdk.restorePassphraseBackup({ backendWalletId, passphrase, label });
// result.restored.address; result.synced.verified

Delete cloud backup

Deleting a backup is destructive; require explicit confirmation and independently verify other recovery material. Do not delete local secrets automatically.

typescript
await sdk.deleteCloudBackup(localWalletId);

Existing installations

MA07 changes local storage to account-scoped keys. Old device-wide secrets are not accessed, migrated or deleted. Do not uninstall the application or clear data to upgrade. Recover using an existing verified seed/backup or implement an ownership-verified migration separately.

text
lbt_wallet_v2.<userId>.secret.<walletId>
lbt_wallet_v2.<userId>.metadata