How does the mechanism work?

A classic script-based multisig construction lists public keys and a required signature count. A 2-of-3 condition accepts an appropriate pair of signatures matching its ordered keys. Any one key alone is insufficient, while losing access to one key may still leave a satisfying pair. This is a statement about the script, not a recommendation for a personal setup.

The script may be hidden behind a hash commitment until spending. With a version-0 witness-script-hash output, the witness program is a 32-byte SHA-256 hash of the witness script. The spender supplies that script and its satisfaction data. Nodes check that its hash matches the earlier commitment before evaluating the condition.

Each signature authorises a transaction message under a signature-hash mode. Participants must agree on what they are authorising: resolved inputs, destination outputs, amounts and relevant conditions. Merely collecting signatures labelled with familiar names does not prove that they cover the same transaction. Changing committed transaction data can invalidate signatures already gathered.

Before counting signatures, establish the complete policy the output committed to. A threshold label can omit alternative branches, time conditions or recovery paths. Each changes what a valid spend may look like. Key ordering also matters to reconstructing the same script hash, even if the set of participants sounds unchanged in prose. A backup description should identify the actual construction instead of recording only a slogan such as several keys required. This helps explain why losing coordinator metadata can be different from losing a signing secret: recovery needs enough information both to find the output and to satisfy its precise conditions.

How does an m-of-n multisig condition work?An m-of-n multisig condition requires a specified threshold of signatures from a defined set of public keys. The spending transaction must satisfy that script’s rules. A threshold does not remove the need to preserve scripts and recovery information.Commit threshold and keysGather required signaturesVerify script and signatures
The threshold controls spending authority. It is not a division of the output into separate balances.

How do the protocol numbers work in an example?

Consider an invented witness script containing OP_2, three compressed 33-byte public keys, OP_3 and OP_CHECKMULTISIG. Each key needs a one-byte push prefix. The length is 1 + 3 × 34 + 1 + 1 = 105 bytes. The version-0 funding output commits to its 32-byte script hash; its output script is 34 bytes including version and push length.

To spend using the first and third keys, supply their signatures in the order compatible with the script’s key sequence, along with the witness script. The classic CHECKMULTISIG mechanism also consumes an extra dummy stack item; the applicable rules require that dummy to be empty. Omitting it is not corrected by having the right two signatures.

The 105-byte script length does not determine the whole input size. Signature lengths, witness item length prefixes and the transaction’s base fields also contribute. Nor does a 2-of-3 script split the value into thirds. The valid spend consumes the entire referenced output, then creates whatever permitted payment and change outputs the transaction specifies.

Two signatures satisfy a three-key thresholdKeys A and C sign the same committed transaction. Their correctly ordered signatures, the witness script and remaining required witness data are checked against a two-of-three condition.Key AKey BKey CA + C sign same transactionVerify 2-of-3 script
The diagram follows the worked example. Sample heights and amounts illustrate the sourced rules.

Common misunderstandings

Three copies of one secret are not three independent signing authorities. If a script repeats keys or participants share secrets, the operational assumptions differ from a diagram showing separate signers. Independence, backups and coordinator information must be examined explicitly.

Keys alone may not reconstruct a script commitment. You can need the complete script, its key ordering and derivation information to recognise and spend the output. An address cannot be reversed to recover a lost witness script from its hash.

A single-looking Taproot key-path signature does not prove there was only one human signer. Conversely, classic script multisig does not automatically become key aggregation. The on-chain validation condition and the off-chain signing protocol are different layers, with different recovery requirements and failure modes.

Check yourself

Do two valid signatures in arbitrary order always satisfy a classic 2-of-3 script?

Reveal the answer

No. Signature ordering must be compatible with the ordered public keys, and the script commitment and remaining stack requirements must also pass. The threshold alone does not describe every check.

What does this diagram leave out?

This is a structural explanation, not a ready-to-fund script or key-generation workflow. It uses classic multisig semantics in a version-0 witness context. Taproot script and collaborative key-path signing need their own constructions.

In the Bitcoin family

The Bitcoin Ecosystem project describes BitcoinQu1 (BTC1q) as “The Quantum-Secure Ledger”. Its stated purpose is to future-proof Bitcoin’s value proposition against the threat of quantum computing, with supply wording “21 Million”.

Which primary sources define the rules?

Sources: Classic multisig and key ordering; Witness script hash construction; Empty multisig dummy requirement.

Source: Bitcoin Ecosystem project descriptions.