Miniscript allows software to automatically analyze a script, including determining what witness data must be generated in order to spend bitcoins protected by that script. With miniscript telling the wallet what it needs to do, wallet developers don’t need to write new code when they switch from one script template to another.
The structured representation of Bitcoin scripts provided by miniscript allows wallets to be much more dynamic about the scripts they use. In support of that dynamism, miniscripts can be created using an easily-written policy language. Policies are composable, allowing any valid sub-expression to be replaced by another valid sub-expression (within certain limits imposed by the Bitcoin system).
Primary code and documentation
Optech newsletter and website mentions
- 2020-03-25 Question about a specification for miniscript
- 2019-12-28 2019 year-in-review: miniscript
- 2019-08-28 Miniscript request for comments
- 2019-05-29 Final stack empty, insights from miniscript development
- 2019-02-05 Miniscript presentation