[#ScriptHash]
= ScriptHash
:mrdocs:

A script&hyphen;hash destination for a P2SH address&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct ScriptHash
    : 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:ScriptHash/2constructor-01.adoc[`ScriptHash`]         [.small]#[constructor]#
| Constructors
| xref:ScriptHash/ToString.adoc[`ToString`] 
| Returns the hexadecimal string representation of the hash&period;
| 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&period;
| xref:ScriptHash/2conversion.adoc[`operator std::vector&lt;unsigned char&gt;`] 
| Converts the hash to a byte vector&period;
| xref:ScriptHash/operator_eq.adoc[`operator&equals;&equals;`] 
| Compares two hashes for equality&period;
| xref:ScriptHash/operator_lt.adoc[`operator&lt;`] 
| Orders two hashes&period;
|===


== Protected Data Members

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


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:ToScriptID.adoc[`ToScriptID`]
| Convert a script&hyphen;hash destination back to a script identifier&period;
|===


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