Skip to main content
Popular searches
BlockchainUpdated: Nov 22, 2026

Miniscript

Miniscript is a structured policy language for Bitcoin Script. It simplifies writing, analyzing, and compiling complex spending conditions.

Also known as:Bitcoin miniscriptpolicy language

What Is Miniscript?

Miniscript is a structured way of writing Bitcoin Script, the low-level language that defines how coins can be spent. Conditions such as one key, two of three keys, or a key that only works after a waiting period are written as nested fragments that software can read, combine and check.

Raw Script is hard to analyse, which is why wallets long supported only a few fixed templates. With Miniscript, a wallet can work out for any valid policy which signatures are needed, how large the spend will be and whether the coins could become unspendable. An example is wsh(or_d(pk(A),and_v(v:pk(B),older(52560)))): key A can spend at any time, key B only after the coins have not moved for 52560 blocks, roughly a year.

For hardware wallets this opens up setups beyond plain multisig: a recovery key that becomes active after a delay, an inheritance path, a multisig whose threshold drops over time. The device has to understand the policy to display it and to recognise the wallet's own change addresses. In our catalogue, BitBox02, Coldcard and Ledger devices support Miniscript; several others, including Tangem and SafePal wallets, do not.

The trade-off is a more demanding backup: besides the recovery phrase you need the descriptor with the policy and all public keys, and a coordinator app that supports Miniscript, such as Liana.

Real-World Examples

Example 1: A user creates a wallet in a Miniscript-capable coordinator app with a Coldcard Q as the everyday key and a BitBox02 Nova as a recovery key that only becomes usable if the coins have not moved for about a year. Each device is shown the policy once during setup, so it can later recognise the wallet's addresses.

Example 2: Before funding that wallet, the user restores it on a second computer from the saved descriptor and checks that the first receive address matches the one shown on the hardware wallet's screen.

BlockchainBitcoin

Read full definition: Bitcoin
WalletHardware Wallet

Read full definition: Hardware Wallet
TransactionMultisig

Read full definition: Multisig
SecurityRecovery

Read full definition: Recovery
TransactionChange Address

Read full definition: Change Address
HardwareColdcard

Read full definition: Coldcard
HardwareLedger

Read full definition: Ledger
HardwareTangem

Read full definition: Tangem
HardwareSafePal

Read full definition: SafePal
SecurityBackup

Read full definition: Backup
BlockchainMnemonic Phrase

Read full definition: Mnemonic Phrase
BlockchainPublic Key

Read full definition: Public Key
WalletWallet Address

Read full definition: Wallet Address

Hardware Wallets by Miniscript

Browse wallets grouped by this feature

Affiliate link — we may earn a commission at no extra cost to you. Learn more about affiliate links

Supported: 10 of 19 wallets we have data for — BitBox02 Nova, BitBox02, Ledger Stax, Ledger Nano X, Ledger Nano Gen5 and 5 more.

Frequently Asked Questions

Which hardware wallets support Miniscript?
10 of 19 wallets we have data for: BitBox02 Nova, BitBox02, Ledger Stax, Ledger Nano X, Ledger Nano Gen5 and 5 more.
What can Miniscript do that plain multisig cannot?

It allows spending conditions beyond a fixed m-of-n rule: a recovery key that becomes active after a delay, an inheritance path, or a multisig whose threshold drops over time. Because the policy is written as structured fragments, a wallet can work out which signatures are needed, how large the spend will be and whether the coins could become unspendable.

What do I need to back up for a Miniscript wallet?

More than the recovery phrase. You also need the descriptor with the policy and all public keys, and a coordinator app that supports Miniscript to rebuild the wallet. Before funding it, a useful test is to restore the wallet on a second computer from the saved descriptor and check that the first receive address matches the one on the hardware wallet's screen.

Why does the hardware wallet have to understand the policy?

So it can display the spending conditions it is signing for and recognise the wallet's own change addresses. A device that cannot parse the policy can confirm neither, which is why not every hardware wallet works with Miniscript wallets. During setup each device is shown the policy once and can then recognise the wallet's addresses.

Ready to Choose a Secure Wallet?

Use our tools to find the right hardware wallet for your needs.