[#CKey-Derive] = xref:CKey.adoc[CKey]::Derive :relfileprefix: ../ :mrdocs: Derive BIP32 child key. == Synopsis Declared in `<key.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] bool Derive( xref:CKey.adoc[CKey]& keyChild, xref:ChainCode.adoc[ChainCode]& ccChild, unsigned int nChild, xref:ChainCode.adoc[ChainCode] const& cc) const; ---- == Return Value true if derivation succeeded. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *keyChild* | Output child private key. | *ccChild* | Output child chain code. | *nChild* | Index of the child key to derive. | *cc* | The parent chain code. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#