[#CBlockHeaderAndShortTxIDs-2constructor-0d]
= xref:CBlockHeaderAndShortTxIDs.adoc[CBlockHeaderAndShortTxIDs]::CBlockHeaderAndShortTxIDs
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

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

Dummy for deserialization


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

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

Builds the compact representation of a block&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:CBlockHeaderAndShortTxIDs/2constructor-07.adoc[CBlockHeaderAndShortTxIDs](
    xref:CBlock.adoc[CBlock] const& block,
    uint64&lowbar;t nonce);
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block* [in]
| The block to encode&period;
| *nonce* [in]
| This should be randomly generated, and is used for the siphash secret key
|===


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