The script context a Miniscript is used under.
Declared in <script/miniscript.h>
enum class MiniscriptContext : int;
| Name | Description |
|---|---|
P2WSH | Pay-to-Witness-Script-Hash (SegWit v0) context. |
TAPSCRIPT | Tapscript (Taproot leaf script) context. |
| Name | Description |
|---|---|
IsTapscript | Whether the context Tapscript, ensuring the only other possibility is P2WSH. |