[#btck-BlockHashApi-00]
= xref:btck.adoc[btck]::BlockHashApi
:relfileprefix: ../
:mrdocs:

CRTP mixin adding block&hyphen;hash operations shared by the view and owning types&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

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

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/BlockHashApi-00/ToBytes.adoc[`ToBytes`] 
| Returns the raw 32&hyphen;byte block hash&period;
| xref:btck/BlockHashApi-00/operator_eq.adoc[`operator&equals;&equals;`] 
| Compares two block hashes for equality&period;
| xref:btck/BlockHashApi-00/operator_not_eq.adoc[`operator!&equals;`] 
| Compares two block hashes for inequality&period;
|===


== Derived Classes

[cols="1,4"]
|===
| Name| Description
| xref:btck/BlockHash.adoc[`BlockHash`] 
| Owning wrapper over a `btck&lowbar;BlockHash`&period;
| xref:btck/BlockHashView.adoc[`BlockHashView`] 
| Non&hyphen;owning view over a `btck&lowbar;BlockHash`&period;
|===


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