CKey::Derive

Derive BIP32 child key.

Synopsis

Declared in <key.h>

[[nodiscard]]
bool
Derive(
    CKey& keyChild,
    ChainCode& ccChild,
    unsigned int nChild,
    ChainCode const& cc) const;

Return Value

true if derivation succeeded.

NOTE

The return value should not be discarded.

Parameters

NameDescription
keyChildOutput child private key.
ccChildOutput child chain code.
nChildIndex of the child key to derive.
ccThe parent chain code.