[#CExtKey-2constructor-0e]
= xref:CExtKey.adoc[CExtKey]::CExtKey
:relfileprefix: ../
:mrdocs:

Construct an extended key from an extended public key&apos;s metadata and a private key&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CExtKey(
    xref:CExtPubKey.adoc[CExtPubKey] const& xpub,
    xref:CKey.adoc[CKey] const& key&lowbar;in);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *xpub*
| The extended public key providing depth, fingerprint, child index and chain code&period;
| *key&lowbar;in*
| The private key material&period;
|===


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