Skip to content

qt: recommend wallet encryption by default - #62

Merged
kiwidream merged 1 commit into
0.1.xfrom
encourage-wallet-encryption
Jun 30, 2026
Merged

kiwidream merged 1 commit into
0.1.xfrom
encourage-wallet-encryption

Conversation

@kiwidream

@kiwidream kiwidream commented Jun 30, 2026 •

Copy link
Copy Markdown
Member

Summary

New qbit-qt wallets now default to encrypted creation for normal wallets with private keys. The Create Wallet dialog labels encryption as recommended and explains that encryption protects private keys while enabling authenticated wallet loads that avoid repeated plaintext PQC key validation.

The dialog constructor now applies the encryption checkbox state during initialization, so incompatible options such as disabled private keys and external signer are synchronized immediately when encryption starts checked by default.

Testing

  • Built locally.
  • Ran focused unit or functional tests for the changed area.
  • Ran lint or formatting checks relevant to this change.
  • Not run. Reason: Full GUI build and focused Qt tests were not run; this is a Qt dialog default/copy change validated with XML parsing, whitespace checks, signed commit verification, and Docker lint.

Checks run:

  • xmllint --noout src/qt/forms/createwalletdialog.ui
  • git diff --check
  • DOCKER_BUILDKIT=1 docker build -t bitcoin-linter --file "./ci/lint_imagefile" ./
  • docker run --rm --user "$(id -u):$(id -g)" -e HOME=/tmp [...] bitcoin-linter

Target Branch

  • This PR targets main or a maintainer-requested release branch such as 0.1.x.

Risk / Review Notes

  • Consensus, script, crypto, wallet, P2P, release, CI, or security-sensitive behavior changed.
  • No consensus, script, crypto, wallet, P2P, release, CI, or security-sensitive behavior changed.

Notes: Wallet creation behavior changes in qbit-qt: encryption is now the default for newly created normal wallets. Users can still opt out by unchecking the box.

Docs / Process Impact

Choose exactly one:

  • I updated public docs because this PR changes user-visible behavior, integration guidance, release/process guidance, or expected validation.
  • No public docs update needed. Reason: The Create Wallet dialog copy explains the new recommended default directly; no integration or process guidance changes.

libbitcoinpqc Subtree Checklist (if src/libbitcoinpqc changed)

  • Upstream fix is merged into the maintained libbitcoinpqc branch used by qbit.
  • Curated branch qbit-subtree was refreshed with prune.
  • Subtree update was done with contrib/devtools/update-libbitcoinpqc-subtree.sh.
  • test/lint/git-subtree-check.sh -r src/libbitcoinpqc passes locally.
  • Followed doc/subtrees/libbitcoinpqc.md.

View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.


Note

Medium Risk
Changes default wallet creation security in the GUI (encryption on unless opted out); logic is dialog-only but affects how new wallets are created.

Overview
qbit-qt’s Create Wallet flow now treats encryption as the default for normal wallets with private keys. The encrypt checkbox starts checked, the label reads Encrypt Wallet (recommended), and the tooltip explains passphrase protection plus authenticated loads that skip repeated plaintext PQC key validation.

Dialog logic was tightened so that default lines up with the other options on first open. Encryption-side effects are centralized in update_encrypt_wallet_options, which runs once at the end of construction (so incompatible advanced options are disabled/unchecked immediately, not only after the user toggles encryption). Turning external signer off again re-checks encryption instead of leaving it off; blank wallet and external signer handlers now keep disable private keys disabled when encryption is on.

Users can still create an unencrypted wallet by unchecking the box; hardware-wallet / setSigners paths still force encryption off when external signing is selected.

Reviewed by Cursor Bugbot for commit 1759571. Bugbot is set up for automated code reviews on this repo. Configure here.

Comment thread src/qt/createwalletdialog.cpp Resolved
@kiwidream
kiwidream force-pushed the encourage-wallet-encryption branch from b8625af to 4405402 Compare June 30, 2026 13:20

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4405402. Configure here.

Comment thread src/qt/createwalletdialog.cpp Resolved
@kiwidream
kiwidream force-pushed the encourage-wallet-encryption branch from 4405402 to 1759571 Compare June 30, 2026 15:05
@kiwidream
kiwidream merged commit 1b0ba61 into 0.1.x Jun 30, 2026
33 checks passed
djh58 pushed a commit that referenced this pull request Jul 2, 2026
* Accept legacy AuxPoW RPC payloads (#23)

* Prevent AuxPoW signalling in permissionless GBT (#22)

* wallet: defer P2MR getnewaddress keypool refill (#13)

* wallet: defer P2MR getnewaddress keypool refill

* wallet: bound internal P2MR keypool refill

* wallet: align P2MR top-up lock ordering

* wallet: schedule raw change P2MR refills

* wallet: report paused P2MR refills as failed

* wallet: log inline P2MR refill failures

* ci: fix BuildKit helper lint

* Document AuxPoW commitment order fields (#35)

* Restrict explicit wallet output types on P2MR-only chains (#25)

* Restrict explicit wallet output types

* test: run BECH32 wallet suites on unrestricted regtest

* fuzz: run wallet transaction target on unrestricted regtest

* Fix BuildKit helper lint

* Report missing wallet output managers accurately

* Allow managerless wallets with default output options

* test: add independent P2MR and CTV script vectors (#29)

* Add independent P2MR PQC witness vector tests (#30)

* test: add independent P2MR PQC witness vector

* test: verify P2MR wrong-domain vector signature

* Fix AuxPoW legacy payload disambiguation

* wallet: avoid MarkUnused P2MR full top-up (#31)

* wallet: avoid MarkUnused P2MR full top-up

* wallet: avoid MarkUnused lock inversion

* wallet: preserve P2MR recovery lookahead

* Split P2MR wallet unit tests (#52)

* Remove unused P2MR wallet test import (#58)

* Shard P2MR wallet unit tests (#60)

* Add independent CHECKDATASIGPQC vector tests (#38)

* test: add P2MR data-hash proof fixtures (#43)

* test: add independent P2MR commitment vectors (#47)

* Reject invalid raw funding outputs (#37)

* Validate witness-pruned assumevalid before wipe (#59)

* Add independent CHECKDATASIGADDPQC vector tests (#42)

* qt: recommend wallet encryption by default (#62)

* Verify libbitcoinpqc tagged subtree imports (#41)

* ci: verify libbitcoinpqc tagged subtree imports

* ci: handle peeled libbitcoinpqc tag refs

* ci: peel libbitcoinpqc tag objects before compare

* ci: pass auth to libbitcoinpqc verifier

* ci: pin libbitcoinpqc verifier inputs

* ci: verify libbitcoinpqc import tree

* Add P2MR PQC annex sighash vectors (#54)

* Add P2MR PQC annex sighash vectors

* Guard annex mutation vector test

* Add P2MR data signature support to Qt Sign/Verify (#63)

* qt: add P2MR data signature dialog

* qt: support text data in P2MR signatures

* qt: align P2MR proof verification with RPC

* test: add P2MR CHECKSIGPQC sighash vectors (#55)

* Add rawmr future-leaf coverage (#64)

* test: cover P2MR SIGHASH_SINGLE missing outputs (#57)

* test: add P2MR PQC codeseparator vectors (#56)

* Fix PQC data-hash counter accounting (#46)

* Fix PQC data-hash counter accounting

* Fix PQC data-hash leaf error priority

* Report final PQC slot failures as exhausted

* doc: add v0.1.2-testnet4 release notes

* build: bump version to v0.1.2-testnet4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant