Miniscript

Miniscript is a simplified scripting language designed to make Bitcoin smart contracts more understandable and manageable. It lets developers build complex spending policies in a modular way, making both the creation and analysis of scripts much more straightforward.

With Miniscript, you can:

  • Easily combine different spending conditions within a single script, helping to optimize for lower transaction fees.
  • Nest scripts inside each other, for example, placing a multisig requirement within another multisig script.
  • Clearly see and understand the criteria required to spend an output.
  • Estimate transaction fees more accurately by analyzing a script’s structure.

Adoption of Miniscript by developers is still in early stages, as exploration and development continue. Miniscript is compatible with several Bitcoin script types, including P2SH, P2WSH, and Tapscript.

For further technical details, visit the Miniscript documentation.