[#WitnessV0KeyHash-2constructor-07]
= xref:WitnessV0KeyHash.adoc[WitnessV0KeyHash]::WitnessV0KeyHash
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

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

Construct a null witness key hash&period;


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

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

Construct a witness key hash from a public key&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:WitnessV0KeyHash/2constructor-0c.adoc[WitnessV0KeyHash](xref:CPubKey.adoc[CPubKey] const& pubkey);
----

[.small]#xref:WitnessV0KeyHash/2constructor-0c.adoc[_» more&period;&period;&period;_]#

Construct a witness key hash from a public&hyphen;key hash&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:WitnessV0KeyHash/2constructor-0d.adoc[WitnessV0KeyHash](xref:PKHash.adoc[PKHash] const& pubkey&lowbar;hash);
----

[.small]#xref:WitnessV0KeyHash/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Construct a witness key hash from a raw 160&hyphen;bit hash&period;


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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pubkey*
| The public key to hash&period;
| *pubkey&lowbar;hash*
| The public&hyphen;key hash&period;
| *hash*
| The raw hash value&period;
|===


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