Tier: M (2-4 days) | Type: feature
Context. Losing the wallet used to derive stealth keys today means losing scan access to all past deposits. The SDK exposes both viewing and spending scalars via deriveStealthKeys. Give users a passphrase-encrypted JSON kit they can back up offline and restore on a fresh browser to regain scanning.
Scope.
- Settings action "Export recovery kit" produces an AES-GCM encrypted JSON with viewing scalar, meta-address, chain, and profile labels.
- Passphrase entry with strength meter; kit filename includes the meta-address prefix.
- Restore flow accepts the kit and unlocks receive-only mode without needing the original wallet.
- Copy is explicit that the kit gives scan and, if the spending scalar is included, spend authority.
Acceptance.
Files. src/lib/stellar/recoveryKit.ts (new), src/pages/Settings.tsx, src/vault/KeyVault.ts, src/context/StealthKeysContext.tsx.
Tier: M (2-4 days) | Type: feature
Context. Losing the wallet used to derive stealth keys today means losing scan access to all past deposits. The SDK exposes both viewing and spending scalars via
deriveStealthKeys. Give users a passphrase-encrypted JSON kit they can back up offline and restore on a fresh browser to regain scanning.Scope.
Acceptance.
Files.
src/lib/stellar/recoveryKit.ts(new),src/pages/Settings.tsx,src/vault/KeyVault.ts,src/context/StealthKeysContext.tsx.