Files
ObsidianDragon/docs/release-notes/v2.1.0.md
T
DanSandClaude Opus 4.8 6bb72f9878 fix(input): strip Unicode/CJK whitespace across address, key, and URL inputs
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>
2026-11-15 12:11:54 -06:00

96 lines
8.7 KiB
Markdown

**DragonX (DRGX) Full-Node Desktop Wallet — v2.1.0**
ObsidianDragon is a native ImGui-based full-node wallet for the DragonX network, with an embedded `dragonxd` daemon and the integrated DRG-XMRig CPU miner. **v2.1.0 is a large feature + hardening release** on top of the v2.0.x line: new private-chat capabilities, in-place fund consolidation and legacy-wallet recovery, node-lifecycle safety, a broad UX pass, and the full 2026-10 security / fund-correctness / resilience audit. **No forced migration** — existing wallets, chain data and settings open as-is; just replace the binary.
---
## ⚠️ Behavior changes to know before upgrading
None of these touch your funds or require a reindex, but they change how the app behaves:
- **Closing the wallet no longer stops your node after a timeout.** Quitting waits as long as the node needs (e.g. a long witness rebuild). The old "Force Quit" is gone; the shutdown screen offers **"Close wallet, leave node running"** and a confirmed **"Kill node (unsafe)."** The quit prompt now defaults to keeping the node running.
- **Transparent (`R…`) addresses can no longer be paid.** They are treated as mining-only addresses; Send, drag-to-transfer and pool payout refuse them inline (DragonX consensus already rejected such payments — this turns a network failure into a clear block). Pool mining therefore requires a shielded payout address.
- **Pool mining no longer holds the wallet unlocked.** Auto-lock now only pauses for *solo* mining (which needs the wallet); pool miners will be auto-locked on the idle timer.
- **Auto-lock follows real input.** A focused-but-idle text field no longer keeps the wallet open; a form left past the timeout now locks (your typed buffers survive).
- **The "Use Tor" setting is disabled.** It was never implemented — no traffic was ever routed through Tor. A stored `use_tor=true` is cleared once at startup with a warning; to use Tor, set `proxy=127.0.0.1:9050` in `DRAGONX.conf`.
- **A `dbcache` value in `DRAGONX.conf` now takes effect** (it previously overrode the wallet's pinned value only in one direction) — if you had set one, node memory use may change.
---
## Highlights
- **Private chat: delete a conversation everywhere.** A new "Delete everywhere" action broadcasts a tiny self-addressed on-chain signal so the conversation is hidden on every device — and on a wallet freshly restored from your seed. A **Restore** dialog brings it back (pick from the list, paste the chat address, or Quick scan). Gated on a fully-synced wallet; costs the normal chat fee.
- **Private chat: sensitive conversations.** Mark a conversation "sensitive" and its messages are encrypted on this device under a **separate passphrase** (not your seed) — so a wallet restored from the seed alone can't read them. Lock/unlock hides and shows them. ⚠️ *Lose that passphrase and those messages are gone forever;* your sent messages are fully protected, while received messages remain on-chain and only DragonX's own policy withholds them without the passphrase.
- **Keep funds split across your addresses.** Note consolidation gains a **"Keep in each address"** mode and runs as a paced, resumable background job with a status-bar chip and a Stop button.
- **Legacy-wallet recovery.** A banner offers to recover stuck transparent (mining) funds from an old Silent Dragon wallet: **import from a backup file** (`z_importwallet`), inline unlock during the migrate-to-seed sweep, and extra backup/confirm gating on migration.
- **Period earnings & address-scoped history.** The Balance tab shows a period-earnings column and a "Pending +X" chip; "View transactions" from Contacts / Balance / Receive opens a history filtered to one address, with scoped CSV export.
---
## What's new
### Private chat (HushChat)
- **On-chain delete / restore** via a new, forward-compatible `Control` memo type (older clients ignore it).
- **Sensitive conversations** — passphrase-wrapped local key vault (Argon2id + XSalsa20-Poly1305), per-conversation, with lock/unlock and an honest warning on marking.
- **Unsolicited-contact handling** — an Accept / Block card, a "Request" pill, and a first-run intro card.
- **Copy my chat address**, a Contacts → Chat "Message" action, a key-fingerprint dialog, and clearer "waiting for reply" / "no identity" / stuck-send explanations.
### Wallet & funds
- **"Keep in each address" consolidation** as a paced background `ConsolidationRun` with live status and Stop.
- **Migrate-to-seed + legacy recovery** — stuck-funds banner, backup-file import, inline unlock in the sweep step, a second backup acknowledgement, and a reorg-safe confirm gate (adopt now needs ≥10 confirmations and a pre-adopt re-verify; your old `wallet.dat` is always copied to a timestamped `.bak`).
- **Balance** — period-earnings column + totals in every layout, a "Pending +X" chip, and a "catching up, your funds are safe" strip while syncing.
- **Send** — usable while syncing (Review stays gated), fee and total shown on the compose form, full recipient + contact label on confirm.
- **History** — address-scoped view, CSV export scope (all / current filter / date range), and new "Dropped" / "Expired?" statuses.
### Node & daemon
- **Lifecycle hardening** — reliable stop delivery that never kills a node the wallet didn't launch; node-stopping operations wait for the process to exit; a **"Node busy"** overlay/banner; an RPC busy-gate with connect-retry backoff that ends the reconnect storm.
- **Detached-node recognition** (via a pid file), `debug.log` tailing on Linux/macOS, `-rpcthreads=16` on launch unless your conf sets it, and auth-failed / no-peers banners with Restart-node and Open-config actions.
### Mining
- **Mining-address model** (transparent addresses are mining-only; see above), a shield-coinbase **mining-address dropdown** with a confirm preview, a persistent start/stop error caption, a pool-status timeout, and "Generate a shielded payout address" / "Download miner" actions.
### Onboarding & UX
- First-run wizard improvements (try-mirror, retry keeps the mirror, a "Start Daemon" Done screen, handoff toast), a persistent **seed-backup** reminder that re-fires until you actually view the phrase, friendlier RPC errors, pause-on-hover toasts with a clickable **toast history** ("+N more"), and many new strings across all 8 languages.
---
## Security & privacy
v2.1.0 folds in the whole 2026-10 audit programme (security, fund-correctness, concurrency/resilience):
- **Fund-correctness** — fixed a wrong-send on "Max", integer-satoshi arithmetic throughout, a lost-reply double-send guard (a lost send now warns "may be in flight, check History" and clears the form rather than inviting a blind resend), and hardened migrate-to-seed sweep/adopt.
- **Hardening** — secret scrubbing, console key-dump masking with an auto-clearing "Copy secret", auto-clearing clipboard for exported keys, failed-unlock lockout now **persisted across restarts**, destructive console commands require confirmation, Windows file ACLs, strict TLS / redirect / size caps on downloads, bootstrap zip-slip protection and SHA-256-only verification, a per-user single-instance lock, CSV-injection and payment-URI validation.
---
## Performance
- **Render-on-demand** frame loop (full rate on input; low ambient/idle rates otherwise) — much lower idle CPU/GPU.
- **Full-node scan governor** — balance/address/history/probe scans share one budget and run only when the tip, mempool or wallet state actually changed, with bounded shielded-history passes and a persisted sent-history sweep. This substantially cuts the wallet's RPC load on `dragonxd`.
- **Off-UI-thread disk** — `settings.json`, `wallets.json` and the tx-history snapshot are written off the UI thread; per-frame SQLite writes are gone. Cheaper startup and a once-pruned, indexed Explorer block cache.
---
## Fixes
Dozens of correctness, crash, HiDPI, settings-tolerance and quality fixes across Send, Mining, Peers, Console, History and Explorer — the bulk of the 2026-10 audit's fund-correctness and resilience work. No fix requires a reindex or rescan, and there are no wallet-format or RPC-wire changes.
---
## 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 |
|------|---------|
| ObsidianDragon-2.1.0.AppImage | `…` |
| ObsidianDragon-2.1.0-Linux-x64.zip | `…` |
| ObsidianDragon-2.1.0.exe | `…` |
| ObsidianDragon-2.1.0-Windows-x64.zip | `…` |
| ObsidianDragon-2.1.0-macOS-x86_64.dmg | `…` |
| ObsidianDragon-2.1.0-macOS-x86_64.app.zip | `…` |
---
For the baseline feature set (HushChat messaging, seed-phrase wallets & migrate-to-seed, in-app node/miner updaters, built-in mining, 8-language UI), see the **v2.0.0** release notes — v2.1.0 adds and hardens the items above.