[#WitnessV0ScriptHash-2constructor-08]
= xref:WitnessV0ScriptHash.adoc[WitnessV0ScriptHash]::WitnessV0ScriptHash
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;addresstype&period;h&gt;`

Construct a null witness script hash&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:WitnessV0ScriptHash/2constructor-01.adoc[WitnessV0ScriptHash]();
----

[.small]#xref:WitnessV0ScriptHash/2constructor-01.adoc[_» more&period;&period;&period;_]#

Construct a witness script hash from a script&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:WitnessV0ScriptHash/2constructor-02.adoc[WitnessV0ScriptHash](xref:CScript.adoc[CScript] const& script);
----

[.small]#xref:WitnessV0ScriptHash/2constructor-02.adoc[_» more&period;&period;&period;_]#

Construct a witness script hash from a raw 256&hyphen;bit hash&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:WitnessV0ScriptHash/2constructor-03.adoc[WitnessV0ScriptHash](xref:uint256.adoc[uint256] const& hash);
----

[.small]#xref:WitnessV0ScriptHash/2constructor-03.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *script*
| The script to hash&period;
| *hash*
| The raw hash value&period;
|===


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