[#DeriveExtKey]
= DeriveExtKey
:mrdocs:

Get extended key and origin info for a given path

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;std::pair&lt;CExtKey, KeyOriginInfo&gt;&gt;
DeriveExtKey(
    xref:CExtKey.adoc[CExtKey] const& ext&lowbar;key,
    std::vector&lt;uint32&lowbar;t&gt; const& path);
----

== Return Value

the resulting extended private key and origin info

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ext&lowbar;key* [in]
| The extended private key to derive from
| *path* [in]
| The BIP 32 path
|===


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