[#WitnessV0KeyHash] = WitnessV0KeyHash :mrdocs: A version‐0 witness key‐hash destination for a P2WPKH address. == Synopsis Declared in `<addresstype.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct WitnessV0KeyHash : xref:BaseHash-03.adoc[BaseHash<uint160>] ---- == Base Classes [cols="1,4"] |=== | Name| Description | `xref:BaseHash-03.adoc[BaseHash<uint160>]` | Wraps a fixed‐size hash value and exposes byte‐range access to it. |=== == 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. | 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. | xref:WitnessV0KeyHash/2conversion.adoc[`operator std::vector<unsigned char>`] | Converts the hash to a byte vector. | xref:WitnessV0KeyHash/operator_eq.adoc[`operator==`] | Compares two hashes for equality. | xref:WitnessV0KeyHash/operator_lt.adoc[`operator<`] | Orders two hashes. |=== == Protected Data Members [cols="1,4"] |=== | Name| Description | xref:WitnessV0KeyHash/m_hash.adoc[`m_hash`] | The wrapped hash value. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:ToKeyID-00.adoc[`ToKeyID`] | Convert a witness key‐hash destination back to a key identifier. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#