A multisig address can spend only with signatures from more than one key. BitWindow has three tools for this work: the Multisig Lounge, the PSBT Signer and Decode Transaction. All three are in the Wallet tab, under Tools. You can also open the Multisig Lounge from the Banking menu.
Words in this chapter
| Word | Meaning |
|---|---|
| Multisig group | An m-of-n address set. It has n keys, and m of them must sign a spend. |
| Co-signer | A person or device that holds one key of the group. |
| xpub | An extended public key. It lets BitWindow make addresses, but it cannot sign. |
| PSBT | A partially signed Bitcoin transaction. Co-signers add signatures to it one at a time. |
BitWindow makes the group addresses as native segwit multisig, with the keys in sorted order. It keeps a watch-only wallet for each group in Bitcoin Core, so it can show the balance and the coins of the group.
The Multisig Lounge
The Lounge has two parts. Multisig Groups lists your groups with the columns Name, Balance (BTC), UTXOs, Total Keys, Keys Required, Type and TXID (If Broadcasted). Multisig Transactions lists the spends and deposits of the groups.
The Group Tools are Create New Group, Fund Group, Import from TXID and Get Key. The Transaction Tools are Create Transaction, Import PSBT and Combine & Broadcast.
Get a key for a co-signer
Each co-signer gives one xpub to the group. To get an xpub from your BitWindow wallet, select Get Key. The window Get Multisig Key shows your next available key: Key Index, Derivation Path, Extended Public Key (xpub), Key Fingerprint and Origin Path.
Type a name at Key Name and select Save Key. Then give this data to the other co-signers. Do not give them a private key. The xpub cannot spend coins.
Create a group
- Select Create New Group.
- Type a Multisig Group Name.
- Type Required Signatures (m) and Total Keys (n). The maximum for both is 15.
- Select Next.
- For each key, type the Owner Name, the Derivation Path and the Extended Public Key (xPub). Master Fingerprint (Optional) is optional.
- Select Save Key. Do this again for each co-signer.
- Select Save Multisig Group when the group has all of its keys.
To add a key from your own wallet, select Generate Wallet xPub. To load a key from a file, select Import Key and select a .json or .conf file. Each key must have a different owner name, and you cannot add the same xpub two times.
Store the group on chain
By default, BitWindow broadcasts the group data when you save the group. It puts the group name, the m-of-n numbers and all keys in an OP_RETURN output. The same transaction sends 10,000 sats to a new address of your own wallet. You pay the network fee.
With this record, a co-signer can get the group back from the chain. The co-signer selects Import from TXID, pastes the transaction ID and selects Fetch Multisig Data. BitWindow shows the keys and marks each key as Wallet Key or External Key. Then select Import Group.
You can select Do not store on chain (Not recommended). The app then warns: "you must manually back up the multisig configuration. This is very risky but in some situations has a privacy benefit". Without the group data, you cannot find the group addresses again.
The on-chain record is public. It shows all xpubs of the group. A person with the xpubs can see all addresses and coins of the group.
Fund a group
Select Fund Group and select the group. The window shows a Funding Address. Send coins to this address from any wallet. The balance shows in the Balance (BTC) column.
Spend from a group
- Select Create Transaction and select a funded group.
- Type the Destination Address and the Amount (BTC). MAX puts in all coins of the group.
- Select Create Transaction, or select Sign with My Keys to sign at once with the keys of your wallet.
- In Multisig Transactions, select Sign to add the signatures of your wallet.
- Select View to see the Transaction Details and the Signing Status of each key.
- Under Export PSBTs, select Export to save a PSBT file for a co-signer.
- When the co-signer sends a signed file back, select Import PSBT, select the group and select Choose File.
- Select Combine & Broadcast and select the transaction.
The Signatures column shows the signatures collected out of the signatures necessary, for example 1/2. Combine & Broadcast merges all PSBTs of the transaction. BitWindow broadcasts only when the merged PSBT has the necessary number of signatures.
A spend can show these statuses: Needs Signatures, Awaiting Signed PSBTs, Ready to Combine, Ready to Broadcast, Broadcasted, Confirmed, Completed and Voided.
BitWindow refuses a PSBT that spends coins that are not in the group.
The PSBT Signer
The PSBT Signer signs a PSBT with an external signer that has no network connection. Use it when a different program made the PSBT.
- Paste the unsigned PSBT in base64 format.
- Select Sign with external signer.
- BitWindow shows the PSBT as a QR code that changes, for a signer with a camera. You can also select Copy base64 or Save .psbt.
- Sign the PSBT on your signer.
- Select Next: import signed.
- Select Scan signed QR or Load from file, or paste the signed PSBT at Or paste signed PSBT (base64).
- Select Confirm signed.
BitWindow then combines, finalizes and broadcasts the transaction. It shows Transaction broadcast and the txid.
If the text is not base64, you get the error Not a valid base64 PSBT.
Decode Transaction
Decode Transaction shows what is in a transaction before you sign or broadcast it. Paste a txid, raw transaction hex or a base64 PSBT, and select Decode.
The result has four tabs:
| Tab | What it shows |
|---|---|
| Overview | TXID, Version, Lock Time, Size, Virtual Size, Weight, Fee, Fee Rate, Total Input and Total Output. |
| Inputs | Each coin that the transaction spends. |
| Outputs | Each address and amount that the transaction pays. |
| Bytes | The raw bytes of the transaction. |
For a txid, BitWindow looks in the active wallet and on the chain. If it cannot find the txid, it shows "That txid was not found in the active wallet or on chain."
For a normal spend from one wallet, read Send and receive. For backups of keys, read Wallets and backups.
Questions
What is the Multisig Lounge in BitWindow?
It is a tool for m-of-n multisig groups. You add the public keys of all co-signers, fund the group address, and spend only when the necessary number of co-signers sign.
How many keys can a BitWindow multisig group have?
A group can have up to 15 keys. The number of necessary signatures must be between 1 and the total number of keys.
Does BitWindow put my multisig group on the blockchain?
Yes, unless you select Do not store on chain (Not recommended). BitWindow then writes the group data, with all xpubs, in an OP_RETURN output. Anybody with the transaction ID can read it.
Can I sign a PSBT with a hardware or airgap signer in BitWindow?
Yes. Open PSBT Signer, paste the unsigned PSBT and select Sign with external signer. BitWindow shows the PSBT as a QR code and as a file, and broadcasts the signed PSBT that you load back.
What can Decode Transaction read?
It reads a transaction ID, raw transaction hex, or a base64 PSBT. It shows the size, the fee, the inputs, the outputs and the bytes.