[#WitnessV0KeyHash]
= WitnessV0KeyHash
:mrdocs:

A version&hyphen;0 witness key&hyphen;hash destination for a P2WPKH address&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct WitnessV0KeyHash
    : xref:BaseHash-03.adoc[BaseHash&lt;uint160&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:BaseHash-03.adoc[BaseHash&lt;uint160&gt;]`
| Wraps a fixed&hyphen;size hash value and exposes byte&hyphen;range access to it&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:WitnessV0KeyHash/2constructor-07.adoc[`WitnessV0KeyHash`]         [.small]#[constructor]#
| Constructors
| xref:WitnessV0KeyHash/ToString.adoc[`ToString`] 
| Returns the hexadecimal string representation of the hash&period;
| xref:WitnessV0KeyHash/begin-0c.adoc[`begin`] 
| `begin` overloads
| xref:WitnessV0KeyHash/data-09.adoc[`data`] 
| `data` overloads
| xref:WitnessV0KeyHash/end-01.adoc[`end`] 
| `end` overloads
| xref:WitnessV0KeyHash/size.adoc[`size`] 
| Returns the number of bytes in the hash&period;
| xref:WitnessV0KeyHash/2conversion.adoc[`operator std::vector&lt;unsigned char&gt;`] 
| Converts the hash to a byte vector&period;
| xref:WitnessV0KeyHash/operator_eq.adoc[`operator&equals;&equals;`] 
| Compares two hashes for equality&period;
| xref:WitnessV0KeyHash/operator_lt.adoc[`operator&lt;`] 
| Orders two hashes&period;
|===


== Protected Data Members

[cols="1,4"]
|===
| Name| Description
| xref:WitnessV0KeyHash/m_hash.adoc[`m&lowbar;hash`] 
| The wrapped hash value&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:ToKeyID-00.adoc[`ToKeyID`]
| Convert a witness key&hyphen;hash destination back to a key identifier&period;
|===


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