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

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.

Created with MrDocs