Repository navigation
Open
Labels
GUITracking IssueTracks longer-running projects and releases. Gathers TODOs, issues, PRs, and status updates.Wallet
Description
This issue tracks the work to bring guided multisig wallet setup to the GUI (gui-qml) i.e. a setup wizard backed by interfaces::Wallet methods so that N participants, each running Bitcoin Core, can create a k-of-n multisig (k ≤ n) without hand-assembling descriptors on the command line.
It complements the multisig umbrella issue #24861, which tracks the backend primitives needed for multisig.
Design / supporting document: https://gist.github.com/pseudoramdom/4e14d21a93323217cfe016885285b9aa
Prerequisites
- Allow wallets to have private keys with external_signer flag set - wallet: relax external_signer flag constraints #33112
Add keys & collect Keys
- wallet:
addhdkeyRPC to add just keys to wallets via newunused(KEY)descriptor #29136 : addhdkey RPC to generate an HD key into a blank wallet, parked asunused(KEY)- wallet: Add addHDkey interface #35436 -
addhdkey: Corresponding wallet interface
- wallet: Add addHDkey interface #35436 -
- wallet: derivehdkey RPC to get xpub at arbitrary path #32784 -
derivehdkey: account xpub at a chosen (BIP-87) path- Refactor into wallet helper plus interfaces::Wallet::deriveHDKey() - wallet: Add deriveHDKey interface #36070
- descriptor: Expose key expression parsing #35918 - validate a pasted key expression
-
setKeyLabel- per-key labels keyed by master fingerprint
Assemble & verify descriptor
-
createmultisigdescriptor- descriptor-first utility function; P2WSH and P2TR script-path; sortedmulti, ranged, multipath descriptor. -
interfaces::Wallet::analyzeDescriptor- preflight checks returning if wallet can sign, own slot, threshold, output type, cosigner fingerprints/paths, first address, checksum, (GUI-renderable script representation?)
Import
- wallet: Add importdescriptors interface #34861 - Add wallet interface for
importDescriptors - wallet: Allow importing of descriptors without private keys when the wallet has the private keys #35377 - import a public multisig descriptor into a wallet that holds one of the keys
- Label the imported descriptor - To be shown at the time of spending
See also
- Awesome multisig PR labyrinth guide #24861 - multisig backend umbrella ("Awesome multisig PR labyrinth guide")
doc/multisig-tutorial.md- current CLI workflow
Reacted by rkrux, qlrd and Ben Westgate
Reacted by David Gumberg, w0xlt, Murch, Pol Espinasa, Ansh, qlrd and David Knezić
Metadata
Metadata
Assignees
Labels
GUITracking IssueTracks longer-running projects and releases. Gathers TODOs, issues, PRs, and status updates.Wallet
Activity
Sjors commentedon Jul 3, 2026
I think a good intermediate step would be to have a Python based multisig (setup) wizard, that would perform the same steps you have in mind for the GUI.
pinheadmz commentedon Aug 3, 2026
Concept ACK, will be tracking progress and reviewing what I can.
PraneethGunas commentedon Sep 1, 2026
Hi @pseudoramdom, please add the following items to support external signers in the flow, once the gist is updated.
Prerequisites
getxpubonExternalSigner, exposed throughinterfaces::ExternalSignerAdd keys & collect Keys
deriveHDKey- derive from the wallet's own key first, then ask the signer if one is configured, then failAssemble & verify descriptor
walletdisplayaddressfor multisig - send the SPKM's own descriptor to the device instead of inferring one from the scriptPubKeyHappy to update the flow if this has any unintended side effects
Sjors commentedon Sep 1, 2026
Seems fine to add, but a Python script proof-of-concpet can just call
getxpubon HWI directly.#36133 is a prerequisite for that, plus support for the new
registerpolicyHWI command (and passing the registration to signing / display address)descriptor: add CreateMultisigDescriptor()
rxbryan commentedon Sep 4, 2026
Following the discussion on #36143, the direction there was to start with a Python utility that constructs and imports a multisig descriptor, and let RPC/interface work be shaped by what that flow actually needs.
So I'll start on the Python based multisig (setup) wizard unless someone's already underway.
contrib: add multisig wizard
contrib: add multisig wizard
rxbryan commentedon Sep 26, 2026
Opened #36325. It covers the wizard end to end, wallet creation through import, using the RPCs available today. The gaps it worked around are listed there; the ones with no PR yet are
createmultisigdescriptorand the preflight checks underinterfaces::Wallet::analyzeDescriptor.fametrano commentedon Oct 2, 2026
A repeated key in a received descriptor lets fewer signers spend than its threshold says, and the Verify step (
analyzeDescriptor) does not check for one. The design checks for duplicates only increateMultisigDescriptor, on the machine that assembles the descriptor. Todayimportdescriptorsacceptswsh(sortedmulti(2,A/0/*,A/0/*)), and the wallet spends from it with A alone. In the same way,tr(H,multi_a(2,A,A,B))is spent by A alone. A participant who finds their own key and the agreed threshold may not notice that another key appears twice. I suggestanalyzeDescriptorrefuse a repeated key. #36325 already refuses one inadd_cosigner, but not inverify. BIP 388 wallet policies forbid repeated keys as well.BenWestgate commentedon Oct 3, 2026
There may be an intentional reason to duplicate a key within a wsh(multi()) policy, I suggest warning rather than refusing. After all the user can't tell if every key besides his own are controlled by one party.
fametrano commentedon Oct 3, 2026
Agreed, a warning is enough, as long as the Verify step shows it before the user confirms.
rxbryan commentedon Oct 5, 2026
Most hardware wallets enforcing BIP 388 will reject a descriptor with duplicate keys.
So we reject duplicate keys at
add_cosignerbecause we want to create descriptors that are valid everywhere. Core does not care about this, and should be able to sign any valid descriptor, so a warning inanalyze_descriptorsurfaced byverifyis the better fit.Most of the BIP 388 compliance in the wizard is a workaround: Core has no policy rendering, and work on it has stalled, #32659.
descriptor: add CreateMultisigDescriptor()
descriptor: add CreateMultisigDescriptor()
pablomartin4btc commentedon Oct 25, 2026
I'm working on this — already discussed the approach a bit with @pseudoramdom and @w0xlt. I'm also checking what's done on #36325.
descriptor: add CreateMultisigDescriptor()