[#BaseHash-03]
= BaseHash
:mrdocs:

Wraps a fixed&hyphen;size hash value and exposes byte&hyphen;range access to it&period;

== Synopsis

Declared in `&lt;util&sol;hash&lowbar;type&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename HashType&gt;
class BaseHash;
----

== Member Functions

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


== Protected Data Members

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


== Derived Classes

[cols="1,4"]
|===
| Name| Description
| xref:AssumeutxoHash.adoc[`AssumeutxoHash`] 
| Strongly typed hash of a serialized UTXO snapshot&period;
| xref:CScriptID.adoc[`CScriptID`] 
| A reference to a CScript&colon; the Hash160 of its serialization
| xref:PKHash.adoc[`PKHash`] 
| A public&hyphen;key&hyphen;hash destination for a P2PKH address&period;
| xref:ScriptHash.adoc[`ScriptHash`] 
| A script&hyphen;hash destination for a P2SH address&period;
| xref:WitnessV0KeyHash.adoc[`WitnessV0KeyHash`] 
| A version&hyphen;0 witness key&hyphen;hash destination for a P2WPKH address&period;
| xref:WitnessV0ScriptHash.adoc[`WitnessV0ScriptHash`] 
| A version&hyphen;0 witness script&hyphen;hash destination for a P2WSH address&period;
|===


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