feat(settings): split import into separate key + viewing-key buttons
Backup & Data now has two distinct import actions instead of one auto-detecting dialog: - "Import Key" imports a spending key (transparent WIF or shielded z-spending key) with the strong "grants access to funds" warning. - "Import Viewing Key" imports a watch-only shielded viewing key (zxviews…) with a milder eye/watch-only note and an optional "scan from block height" field — z_importviewingkey accepts a start height, so watching a recent address needn't rescan the whole chain. The shared Material dialog (renderImportKeyDialog) branches on import_view_mode_: title, warning tone, field label, the live type indicator, and the recognition guard. A key valid for the *other* button (e.g. a spending key pasted into the viewing-key dialog) now shows a redirect hint rather than a generic "unrecognized" error. importPrivateKey gains a startHeight arg, appended to the shielded import RPCs (z_importviewingkey / z_importkey) and ignored for transparent WIF (importprivkey has no start-height param). The scan-height buffer is wiped on open/close alongside the key buffer. i18n: 9 new keys (button label + tooltip, viewing title/note/field, scan label/hint, two wrong-type redirect hints) with translations for all 8 languages; CJK subset rebuilt (+1 glyph). A modal-import-viewkey sweep surface is added for the viewing-mode dialog. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -441,8 +441,15 @@
|
||||
"import_key_type_zview": "차폐 조회 키 (읽기 전용)",
|
||||
"import_key_warn": "본인이 소유한 키만 가져오세요 — 해당 자금에 접근할 수 있습니다.",
|
||||
"import_key_warning": "경고: 개인 키를 절대 공유하지 마세요! 신뢰할 수 없는 소스의 키를 가져오면 지갑이 위험해질 수 있습니다.",
|
||||
"import_key_wrong_type": "조회 키인 것 같습니다. 대신 \"조회 키 가져오기\"를 사용하세요.",
|
||||
"import_key_z_format": "Z 주소 지출 키 (secret-extended-key-...)",
|
||||
"import_private_key": "개인 키 가져오기...",
|
||||
"import_viewkey_field": "조회 키",
|
||||
"import_viewkey_note": "읽기 전용: 조회 키는 주소의 잔액과 거래를 보여주지만 자금을 사용할 수는 없습니다.",
|
||||
"import_viewkey_scan_hint": "0 = 처음부터 다시 스캔",
|
||||
"import_viewkey_scan_label": "스캔 시작 블록 높이(선택 사항)",
|
||||
"import_viewkey_title": "조회 키 가져오기",
|
||||
"import_viewkey_wrong_type": "지출 키인 것 같습니다. 대신 \"키 가져오기\"를 사용하세요.",
|
||||
"incorrect_passphrase": "잘못된 암호",
|
||||
"incorrect_pin": "잘못된 PIN",
|
||||
"insufficient_funds": "이 금액과 수수료를 위한 잔액이 부족합니다.",
|
||||
@@ -1105,6 +1112,7 @@
|
||||
"settings_gradient_desc": "텍스처 배경을 부드러운 그라데이션으로 교체",
|
||||
"settings_idle_after": "후",
|
||||
"settings_import_key": "키 가져오기...",
|
||||
"settings_import_viewkey": "조회 키 가져오기...",
|
||||
"settings_language_note": "참고: 일부 텍스트는 업데이트하려면 다시 시작해야 합니다",
|
||||
"settings_lock_now": "지금 잠금",
|
||||
"settings_locked": "잠김",
|
||||
@@ -1252,6 +1260,7 @@
|
||||
"tt_font_scale": "모든 텍스트 및 UI 크기 조정 (1.0x = 기본, 최대 1.5x).",
|
||||
"tt_idle_delay": "채굴 시작 전 대기 시간",
|
||||
"tt_import_key": "이 지갑에 개인키 (zkey 또는 tkey) 가져오기",
|
||||
"tt_import_viewkey": "차폐 조회 키를 가져와 주소를 조회(읽기 전용)",
|
||||
"tt_keep_daemon": "설정 마법사를 실행하면 데몬이 여전히 중지됩니다",
|
||||
"tt_language": "지갑 UI 인터페이스 언어",
|
||||
"tt_layout_hotkey": "단축키: 좌/우 화살표 키로 잔액 레이아웃 전환",
|
||||
|
||||
Reference in New Issue
Block a user