From bdc5779b425151f47a4f5c93566a9f40f952428d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 24 Jun 2026 15:06:26 -0700 Subject: Add optional password-encrypted persistence for full accounts Per-account "Save on this device" encrypts a seed account into a localStorage vault (scrypt KDF + XChaCha20-Poly1305 via @noble), so it survives a browser close. On reopen, a vault prompt unlocks all saved wallets with the password (or "Use another wallet" to skip). Default stays session-only; the password is held only in memory for the session and re-encrypts on save/forget. Wrong password fails closed (AEAD). Adds @noble/ciphers dependency. New strings translated across all 19 locales. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/locales/zh.json | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src/locales/zh.json') diff --git a/src/locales/zh.json b/src/locales/zh.json index cf7de6f..72bc340 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -189,5 +189,22 @@ "publicKey": "公钥", "publicKeyDesc": "分享它即可在另一台设备或应用上以只读方式查看此钱包。它会暴露你的地址,而非你的密钥。", "copyKey": "复制密钥", - "showPublicKey": "显示公钥" + "showPublicKey": "显示公钥", + "saveDevice": "保存到此设备", + "forgetDevice": "已保存 · 忘记", + "savedTag": "已保存", + "setPassword": "设置密码", + "setPasswordDesc": "在此设备上加密此钱包。日后需用它解锁已保存的钱包。", + "enterPassword": "输入你的密码", + "enterPasswordDesc": "解锁已保存的钱包以继续。", + "password": "密码", + "confirmPassword": "确认密码", + "pwTooShort": "请至少使用 8 个字符。", + "pwMismatch": "两次密码不一致。", + "pwWrong": "密码错误。", + "unlockSaved": "解锁已保存的钱包", + "unlockSavedDesc": "输入你的密码以打开此设备上保存的钱包。", + "unlock": "解锁", + "useAnotherWallet": "使用其他钱包", + "save": "保存" } \ No newline at end of file -- cgit v1.2.3