Follow-up to the key-import fix: an audit found the same ASCII-only-trim pattern across the input layer, where a pasted value carrying CJK full-width (U+3000), NBSP, zero-width, or BOM whitespace survived trimming and then failed validation or an RPC. Most paths failed closed (same value validated and acted on → "won't work" rather than a wrong send), but several mattered — above all the Lite Import Key path, the exact recurrence of the reported bug on the Lite variant. Single-token inputs (keys, addresses, URLs) now go through util::stripAllWhitespaceForKey; path/label inputs use the new util::trimUnicodeWhitespace (edge-trim, preserves internal spaces): - Lite Import Key (settings_page) — strip-all before importKeyAsync. [fund recovery] - Lite wallet path (open/restore) — edge-trim the request path AND the empty gate (they had diverged: gate trimmed, request used raw). - Contacts — gate on and save the cleaned label/address; clean on paste; an address never persists with stray whitespace (which silently broke every later use + defeated duplicate detection). - Send recipient — strip-all on paste and on field edit, so a CJK-pasted valid address validates and sends. - Chat new-conversation z-address — validate and send the cleaned value. - Chat restore-by-address — strip-all (the old trim even missed '\r'), so a padded address matches the deleted list instead of broadcasting a junk memo. - Mining pool URL + payout — strip-all at persist and in the payout check. - Validate-address dialog — strip-all before classify. - Lite custom server URL — strip-all; its label edge-trimmed. - Payment URI — strip-all the parsed address. - Defense-in-depth: importPrivateKey / sweepPrivateKey strip-all the key; importWalletFile edge-trims the path. Adds trimUnicodeWhitespace coverage to testKeyInputSanitization. Build + tests + hygiene green. (Deferred, noted for follow-up: the console tokenizer treating Unicode whitespace as a separator, and repairing already-polluted address-book entries on load.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
7.1 KiB
DragonX (DRGX) Lite Desktop Wallet — v2.0.0
ObsidianDragonLite is the lightweight, node-free companion to ObsidianDragon — it connects to a DragonX lite-wallet server for near-instant startup, with the same native ImGui interface and shielded-first workflow. v2.0.0 is a major release: the Lite line is now functionally complete and runtime-verified, it inherits the full chat and UX feature set, and it introduces a stronger wallet-encryption format. The major version signals the on-disk format change below — it is opt-in and does not affect opening your existing wallet.
⚠️ Wallet-encryption format change — please read
Newly created, restored, or newly-encrypted Lite wallets now use a salted Argon2id key-derivation and are written as wallet version 10.
- Your existing wallet is unaffected. A wallet already on disk is read and re-written in its current format (version 9); its KDF never changes — even if you remove and re-add encryption on an already-open file.
- The change is forward-only. Once you create or encrypt a new wallet on v2.0.0, older ObsidianDragonLite and SilentDragonXLite cannot open that file — they fail cleanly with "don't know how to read wallet version 10" (never a silent misread). If you may need to open a new wallet with older software, don't rely on the file; your seed phrase is always the cross-wallet recovery path.
- Argon2id (3 passes, 256 MiB) makes unlock a little slower and more memory-hungry on low-RAM machines. To keep the old KDF, set
DRAGONX_LITE_KDF=legacy.
⚠️ Other behavior changes to know
- Remote
http://lite-wallet servers are now rejected (loopbackhttpstill allowed) to prevent a silent TLS downgrade. The default servers arehttpsand unaffected; if you manually pinned a plain-httpremote server, switch it tohttps. - New passphrases must be 8+ characters. This applies to creating/restoring with a passphrase and to Settings → Encrypt. Existing shorter passphrases still open and unlock; an empty passphrase still creates an unencrypted wallet.
- Private-key import is refused while the wallet is encrypted — remove encryption, import, then re-encrypt. Only compressed Base58Check WIFs are accepted; viewing keys still import.
- Transparent (
R…) addresses can no longer be paid (they're mining-only; Send blocks them inline). - Large/fragmented sends: note selection is now deterministic and capped at 250 inputs (~190 kB). A send that would exceed it is refused before proving with "Too many inputs" (stating the max sendable amount) or "Transaction too large" (suggesting you shield transparent funds first) — instead of grinding for minutes. Heavily fragmented wallets may need to send in smaller chunks.
Highlights
- Private chat: delete a conversation everywhere, with a Restore dialog (list / paste chat address / Quick scan) — a tiny on-chain signal hides it on every device and on a seed-restored wallet. Synced-gated; costs the normal chat fee.
- Private chat: sensitive conversations — mark a conversation "sensitive" and its messages are encrypted locally under a separate passphrase (not your seed), so a seed-only restore can't read them. ⚠️ Lose that passphrase and those messages are gone forever.
- Stronger, verified encryption — salted Argon2id wallet encryption (above), a passphrase that is now actually verified on unlock/decrypt, atomic lock/unlock, and a large backend robustness pass.
- A broad UX pass shared with the full-node wallet — friendlier errors, clickable toast history, address-scoped history, a mining-address model, and more.
What's new
Private chat (HushChat)
- On-chain delete / restore via a new forward-compatible
Controlmemo type (older clients ignore it). - Sensitive conversations — a passphrase-wrapped local key vault (Argon2id + XSalsa20-Poly1305) encrypts marked conversations independently of the seed-derived chat key; lock/unlock, with an honest warning on marking.
- Unsolicited-contact Accept / Block card, a "Request" pill, first-run intro card, "Copy my chat address", a Contacts → Chat action, and a key-fingerprint dialog.
Encryption & security
- Salted Argon2id KDF / wallet v10 for new & newly-encrypted wallets (see the caveat above).
- Passphrase is verified on unlock and on remove-encryption — previously, on an unlocked wallet, any string removed encryption; now a wrong passphrase fails. Lock/unlock are atomic and seed export never leaks on failure.
- 8+ character new passphrases, encrypted-wallet import gating, and WIF validation (compressed Base58Check only).
- TLS is verified on the transparent-address scan and mempool channels (as block sync already did) — a lightwalletd with an invalid/self-signed cert now fails those stages instead of silently working.
- On Linux/macOS the
~/.silentdragonxlitedata dir is tightened to0700and existing wallet/backup/log files lose group/other bits.
Sending & sync
- Deterministic spend-note selection (smallest single covering note, else fewest-notes largest-first; zero-value notes never spent) with the 250-input cap and clear pre-proving errors (above); the change address now follows the selected notes.
- Durable, atomic saves — saves
fsynctheir temp/backup/rename, and backup recovery runs only for genuinely corrupt files (the damaged file is preserved as.dat.corrupt-<time>). - Import / Encrypt / Remove-encryption / "New address" are disabled while a scan runs, with a "wait for sync" note.
Performance
- The render-on-demand frame loop (shared with the full-node wallet) cuts idle CPU/GPU sharply.
- Backend memory and file-size cuts (witness pruning, a shared gRPC channel, backpressure, a change-gated refresh worker) — roughly 49 MiB less memory per client.
- The Lite executable is ~54 MB smaller on Windows (it no longer embeds the full-node-only assets), and off-UI-thread disk writes make the UI smoother.
Fixes
A large vendored lite-backend (Rust) robustness pass — no panics across the C ABI, durable/atomic saves, non-destructive backup recovery, reorg and witness fixes, owner-only file modes — plus the shared fund-correctness and UX fixes from the 2026-10 audit. The lite wallet format stays v9 for existing wallets; there is no gRPC protocol change.
Downloads
macOS builds are x86-64 (Intel; run on Apple Silicon via Rosetta 2). SHA-256 sums are filled in when the release artifacts are cut.
| File | SHA-256 |
|---|---|
| ObsidianDragonLite-2.0.0.AppImage | … |
| ObsidianDragonLite-2.0.0-Linux-x64.zip | … |
| ObsidianDragonLite-2.0.0.exe | … |
| ObsidianDragonLite-2.0.0-Windows-x64.zip | … |
| ObsidianDragonLite-2.0.0-macOS-x86_64.dmg | … |
| ObsidianDragonLite-2.0.0-macOS-x86_64.app.zip | … |
For the baseline feature set (node-free operation, wallet lifecycle, shielded + transparent send/shield/receive, HushChat, server browser with failover, 8-language UI), see the lite-v1.0.0 release notes — v2.0.0 adds the items above and the wallet-format change.