[#btck-BlockHash-2constructor-0a]
= xref:btck.adoc[btck]::xref:btck/BlockHash.adoc[BlockHash]::BlockHash
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

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

Constructs an owning copy from a view&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:btck/BlockHash/2constructor-05.adoc[BlockHash](xref:btck/BlockHashView.adoc[BlockHashView] const& view);
----

[.small]#xref:btck/BlockHash/2constructor-05.adoc[_» more&period;&period;&period;_]#

Constructs a block hash from raw 32&hyphen;byte data&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:btck/BlockHash/2constructor-08.adoc[BlockHash](std::array&lt;std::byte, 32&gt; const& hash);
----

[.small]#xref:btck/BlockHash/2constructor-08.adoc[_» more&period;&period;&period;_]#

Takes ownership of an existing C block hash&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:btck/BlockHash/2constructor-0e.adoc[BlockHash](xref:btck_BlockHash-07.adoc[btck&lowbar;BlockHash]* hash);
----

[.small]#xref:btck/BlockHash/2constructor-0e.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *view*
| The view to copy&period;
| *hash*
| The 32&hyphen;byte hash value&period;
|===


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