[#CExtPubKey-Derive] = xref:CExtPubKey.adoc[CExtPubKey]::Derive :relfileprefix: ../ :mrdocs: Derive a BIP32 child extended public key. == Synopsis Declared in `<pubkey.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] bool Derive( xref:CExtPubKey.adoc[CExtPubKey]& out, unsigned int nChild, xref:uint256.adoc[uint256]* bip32_tweak_out = nullptr) 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 | *out* | Output child extended public key. | *nChild* | Index of the child key to derive. | *bip32_tweak_out* | Optional output receiving the BIP32 tweak applied. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#