Skip to main content
£0.00 0

Basket

No products in the basket.

ASIC mining articles and advice

BIP 387 Tapscript Multisig Descriptors: multi_a and sortedmulti_a

BIP 387 guide to multi_a and sortedmulti_a tapscript descriptors, thresholds, x-only keys, derivation, sorting, limits, checksums and wallet testing.

BIP 387 Tapscript Multisig Output Script Descriptors guide cover

This guide explains BIP 387 Tapscript Multisig Output Script Descriptors in plain English. It covers the problem behind the BIP, why it matters and whether the proposal is part of Bitcoin today.

TL;DR

  • What it is: BIP 387 is a Deployed informational specification defining multi_a() and sortedmulti_a() output-script descriptor expressions for threshold policies inside tapscript. The expressions build scripts from CHECKSIG, repeated CHECKSIGADD operations and a final NUMEQUAL threshold check.
  • Why it matters: BIP 387 standardises two useful tapscript threshold-policy expressions. Reliable wallet interoperability comes from preserving context, derivation and sorting rules exactly and verifying the resulting scripts independently on every participating system.
  • Current position: BIP 387 is a Deployed informational specification defining multi_a() and sortedmulti_a() output-script descriptor expressions for threshold policies inside tapscript.

BIP 387 Tapscript Multisig Output Script Descriptors in simple English

BIP 387 Tapscript Multisig Output Script Descriptors: multi_a and sortedmulti_a are tapscript expressions and may occur only within tr(). They are not drop-in replacements for legacy multi or sortedmulti in arbitrary descriptor positions.

Simple example

A node operator is checking BIP 387 Tapscript Multisig Output Script Descriptors. Sortedmulti_a sorts the derived x-only public keys lexicographically before constructing the script.

Key terms in plain English

BIP:
Bitcoin Improvement Proposal: a document describing a proposed rule, standard or process. Its status must be checked separately.
Consensus:
The shared rules full nodes use to decide whether blocks and transactions are valid.
Node:
A computer running Bitcoin software that checks data and communicates with other peers.

Status and dependency

BIP 387 is Deployed, Informational, at the Applications layer and requires the general descriptor rules in BIP 380. Deployed describes ecosystem specification status rather than a separate consensus activation.

Context restriction

multi_a and sortedmulti_a are tapscript expressions and may occur only within tr(). They are not drop-in replacements for legacy multi or sortedmulti in arbitrary descriptor positions.

Threshold rules

The threshold k must be no greater than the number of keys n. The specification permits at most 999 keys, while real wallets should impose smaller resource and review limits appropriate to their signers.

BIP 387 Tapscript Multisig Output Script Descriptors technical diagram
Threshold rules: the fields, validation boundary and operational evidence that implementations need to agree.

Script construction

The first x-only public key is checked with CHECKSIG, later keys are accumulated with CHECKSIGADD, and NUMEQUAL compares the total with k. Key order therefore affects the resulting script.

Sorted form

sortedmulti_a sorts the derived x-only public keys lexicographically before constructing the script. Sorting occurs after derivation, which matters when key expressions contain ranges or wildcards.

Lockstep derivation

When several extended keys are ranged, they derive the same child index together. Wallets must compare receive and change derivations at multiple indices, not just the descriptor text.

How specialists test it

Developers test the proposal with made-up data on an isolated test network. They check normal cases and deliberately invalid cases. Different implementations should reach the same result before anyone relies on the proposal.

Frequently asked questions

What is the main point of BIP 387 Tapscript Multisig Output Script Descriptors?

BIP 387 Tapscript Multisig Output Script Descriptors: multi_a and sortedmulti_a are tapscript expressions and may occur only within tr().

For BIP 387 Tapscript Multisig Output Script Descriptors, what should a beginner know about status and dependency?

BIP 387 is Deployed, Informational, at the Applications layer and requires the general descriptor rules in BIP 380.

For BIP 387 Tapscript Multisig Output Script Descriptors, what should a beginner know about context restriction?

multi_a and sortedmulti_a are tapscript expressions and may occur only within tr().

For BIP 387 Tapscript Multisig Output Script Descriptors, what should a beginner know about threshold rules?

The threshold k must be no greater than the number of keys n.

Conclusion

BIP 387 standardises two useful tapscript threshold-policy expressions. Reliable wallet interoperability comes from preserving context, derivation and sorting rules exactly and verifying the resulting scripts independently on every participating system.

Primary sources

Check the current specification status and the documentation for the exact implementation you operate before moving production funds or changing a mining node.

ASIC MINER PICKS

Recommended ASIC Mining Hardware

Compare three of our highest ranked ASIC miners currently available, with live product details and pricing.
Overall ranking
Overall rank#1of 163AvailableAll: #4 / 836
Bitmain Antminer Z15K 525KSol Equihash Zcash Miner
Bitmain
Pre-OrderFree Shipping
Hashrate
525KSOL
Efficiency
4.73W/KSOL
Power
2483W
Earns/kWh
£0.265
Price · delivered
£6,050.00
ex VAT
Est. per month
£479.85
Payback 1.1 Years
Overall ranking
Overall rank#2of 163AvailableAll: #5 / 836
Bitmain Antminer S21+ Hydro 395Th SHA-256 Bitcoin Miner
Bitmain
Pre-OrderFree Shipping
Hashrate
395TH
Efficiency
15W/TH
Power
5925W
Earns/kWh
£0.063
Price · delivered
£2,970.00
ex VAT
Est. per month
£274.22
Payback 10.8 Months
Overall ranking
Overall rank#3of 163AvailableAll: #6 / 836
Bitmain Antminer S21e XP Hydro U3 860TH SHA-256 Bitcoin Miner
Bitmain
In stock
Hashrate
860TH
Efficiency
13W/TH
Power
11180W
Earns/kWh
£0.073
Price · delivered
Original price was: £10,965.00.Current price is: £7,700.00.
ex VAT
Est. per month
£597.04
Payback 1.1 Years
Browse all ASIC miners
MORE MINING ADVICE

More ASIC Mining Articles

Read practical advice about choosing hardware, calculating electricity costs, setting up miners, hosting and maintenance.
MINER COMMUNITY

Join the ASIC Mining Discussion

Ask a question or share what has worked for you. Your experience may help another miner make a better decision.

Members can read and join the discussion

Log in to read comments from other miners. Create a free account if you would like to ask a question or share your experience.

Log in to read comments Register to join the discussion

Membership helps us protect the discussion from spam and keep answers useful.

ASIC MINING SUPPORT

Need Help Choosing an ASIC Miner?

Tell us what you want to mine, your electricity cost and where the machine will run. We can help you compare hardware, power requirements, hosting and repairs.
Contact our mining team
Browse ASIC miners