[#WitnessV0KeyHash-2constructor-07] = xref:WitnessV0KeyHash.adoc[WitnessV0KeyHash]::WitnessV0KeyHash :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<addresstype.h>` Construct a null witness key hash. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:WitnessV0KeyHash/2constructor-03.adoc[WitnessV0KeyHash](); ---- [.small]#xref:WitnessV0KeyHash/2constructor-03.adoc[_» more..._]# Construct a witness key hash from a public key. [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..._]# Construct a witness key hash from a public‐key hash. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:WitnessV0KeyHash/2constructor-0d.adoc[WitnessV0KeyHash](xref:PKHash.adoc[PKHash] const& pubkey_hash); ---- [.small]#xref:WitnessV0KeyHash/2constructor-0d.adoc[_» more..._]# Construct a witness key hash from a raw 160‐bit hash. [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..._]# == Parameters [cols="1,4"] |=== | Name| Description | *pubkey* | The public key to hash. | *pubkey_hash* | The public‐key hash. | *hash* | The raw hash value. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#