[#ChainCode-2constructor-03]
= xref:ChainCode.adoc[ChainCode]::ChainCode
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

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

Constructs an all&hyphen;zero chain code&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:ChainCode/2constructor-09.adoc[ChainCode]() = default;
----

[.small]#xref:ChainCode/2constructor-09.adoc[_» more&period;&period;&period;_]#

Constructs a chain code from a raw byte span&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
explicit
xref:ChainCode/2constructor-04.adoc[ChainCode](std::span&lt;unsigned char const&gt; vch);
----

[.small]#xref:ChainCode/2constructor-04.adoc[_» more&period;&period;&period;_]#

Constructs a chain code from an existing 256&hyphen;bit blob&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
explicit
xref:ChainCode/2constructor-01.adoc[ChainCode](xref:base_blob-09.adoc[base&lowbar;blob&lt;256&gt;] const& b);
----

[.small]#xref:ChainCode/2constructor-01.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *vch*
| The bytes to initialize the chain code with&period;
| *b*
| The blob to copy the chain code from&period;
|===


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