[#miniscript-MiniscriptContext]
= xref:miniscript.adoc[miniscript]::MiniscriptContext
:relfileprefix: ../
:mrdocs:

The script context a Miniscript is used under&period;

== Synopsis

Declared in `&lt;script&sol;miniscript&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum class MiniscriptContext : int;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `P2WSH` 
| Pay&hyphen;to&hyphen;Witness&hyphen;Script&hyphen;Hash (SegWit v0) context&period;
| `TAPSCRIPT` 
| Tapscript (Taproot leaf script) context&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:miniscript/IsTapscript.adoc[`IsTapscript`]
| Whether the context Tapscript, ensuring the only other possibility is P2WSH&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
