[#BaseHash-03] = BaseHash :mrdocs: Wraps a fixed‐size hash value and exposes byte‐range access to it. == Synopsis Declared in `<util/hash_type.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename HashType> 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. | 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. | xref:BaseHash-03/2conversion.adoc[`operator std::vector<unsigned char>`] | Converts the hash to a byte vector. | xref:BaseHash-03/operator_eq.adoc[`operator==`] | Compares two hashes for equality. | xref:BaseHash-03/operator_lt.adoc[`operator<`] | Orders two hashes. |=== == Protected Data Members [cols="1,4"] |=== | Name| Description | xref:BaseHash-03/m_hash.adoc[`m_hash`] | The wrapped hash value. |=== == Derived Classes [cols="1,4"] |=== | Name| Description | xref:AssumeutxoHash.adoc[`AssumeutxoHash`] | Strongly typed hash of a serialized UTXO snapshot. | xref:CScriptID.adoc[`CScriptID`] | A reference to a CScript: the Hash160 of its serialization | xref:PKHash.adoc[`PKHash`] | A public‐key‐hash destination for a P2PKH address. | xref:ScriptHash.adoc[`ScriptHash`] | A script‐hash destination for a P2SH address. | xref:WitnessV0KeyHash.adoc[`WitnessV0KeyHash`] | A version‐0 witness key‐hash destination for a P2WPKH address. | xref:WitnessV0ScriptHash.adoc[`WitnessV0ScriptHash`] | A version‐0 witness script‐hash destination for a P2WSH address. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#