CExtPubKey::Derive

Derive a BIP32 child extended public key.

Synopsis

Declared in <pubkey.h>

[[nodiscard]]
bool
Derive(
    CExtPubKey& out,
    unsigned int nChild,
    uint256* bip32_tweak_out = nullptr) const;

Return Value

true if derivation succeeded.

NOTE

The return value should not be discarded.

Parameters

NameDescription
outOutput child extended public key.
nChildIndex of the child key to derive.
bip32_tweak_outOptional output receiving the BIP32 tweak applied.