[#ScriptHash] = ScriptHash :mrdocs: A script‐hash destination for a P2SH address. == Synopsis Declared in `<addresstype.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct ScriptHash : 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:ScriptHash/2constructor-01.adoc[`ScriptHash`] [.small]#[constructor]# | Constructors | xref:ScriptHash/ToString.adoc[`ToString`] | Returns the hexadecimal string representation of the hash. | xref:ScriptHash/begin-0d7.adoc[`begin`] | `begin` overloads | xref:ScriptHash/data-04.adoc[`data`] | `data` overloads | xref:ScriptHash/end-09.adoc[`end`] | `end` overloads | xref:ScriptHash/size.adoc[`size`] | Returns the number of bytes in the hash. | xref:ScriptHash/2conversion.adoc[`operator std::vector<unsigned char>`] | Converts the hash to a byte vector. | xref:ScriptHash/operator_eq.adoc[`operator==`] | Compares two hashes for equality. | xref:ScriptHash/operator_lt.adoc[`operator<`] | Orders two hashes. |=== == Protected Data Members [cols="1,4"] |=== | Name| Description | xref:ScriptHash/m_hash.adoc[`m_hash`] | The wrapped hash value. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:ToScriptID.adoc[`ToScriptID`] | Convert a script‐hash destination back to a script identifier. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#