diff --git a/docs/release-notes/lite-v2.0.0.md b/docs/release-notes/lite-v2.0.0.md new file mode 100644 index 0000000..3ec15df --- /dev/null +++ b/docs/release-notes/lite-v2.0.0.md @@ -0,0 +1,86 @@ +**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** (loopback `http` still allowed) to prevent a silent TLS downgrade. The default servers are `https` and unaffected; if you manually pinned a plain-`http` remote server, switch it to `https`. +- **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 `Control` memo 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 `~/.silentdragonxlite` data dir is tightened to `0700` and 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 `fsync` their temp/backup/rename, and backup recovery runs only for genuinely corrupt files (the damaged file is preserved as `.dat.corrupt-