add biometric support for monero wallet open/create/restore, add monero settings card, fix monero logout to stop rpc

- Added moneroGetStoredPassword / moneroStorePassword keychain helpers
- moneroCreateWallet and moneroRestoreWallet accept storePw flag to save password to keychain
- moneroOpenExistingWallet accepts optional password (falls back to keychain lookup)
- Monero UI: 'Save password with Touch ID' checkbox hides password field, auto-generates random password, saves to keychain
- Monero UI: 'Open with Touch ID' button uses biometric auth + retrieves stored password
- Monero Settings card: enter wallet password to save with Touch ID for existing wallets
- logout() now async, calls moneroStop() to kill RPC process so re-login requires explicit wallet open
This commit is contained in:
2026-05-18 05:31:41 +08:00
parent 9846e6464d
commit 9396ffb1e0
3 changed files with 98 additions and 31 deletions
@@ -261,7 +261,7 @@
<Button variant="outline" onclick={() => navigate('/settings')}>
<SettingsIcon size={16} />
</Button>
<Button variant="outline" onclick={() => { w.logout(); navigate('/') }}>
<Button variant="outline" onclick={async () => { await w.logout(); navigate('/') }}>
Logout
</Button>
</div>