[#SigVersion]
= SigVersion
:mrdocs:

Script execution context that selects the signature&hyphen;hashing scheme&period;

== Synopsis

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

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

== Members

[cols="1,4"]
|===
| Name| Description
| `BASE` 
| Bare scripts and BIP16 P2SH&hyphen;wrapped redeemscripts
| `WITNESS&lowbar;V0` 
| Witness v0 (P2WPKH and P2WSH)&semi; see BIP 141
| `TAPROOT` 
| Witness v1 with 32&hyphen;byte program, not BIP16 P2SH&hyphen;wrapped, key path spending&semi; see BIP 341
| `TAPSCRIPT` 
| Witness v1 with 32&hyphen;byte program, not BIP16 P2SH&hyphen;wrapped, script path spending, leaf version 0xc0&semi; see BIP 342
|===



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